Add documentation to build the module with pgxs.

This commit is contained in:
Takahiro Itagaki
2010-07-09 04:54:27 +00:00
parent d490a1b458
commit 8ab15f2e72
2 changed files with 18 additions and 10 deletions

View File

@ -279,11 +279,15 @@ In many case pg_reorg would fail and rollback collectly, but there are some case
Then, it updates system catalog directly to swap the work table and the original one.</p>
<h2 id="install">Installations</h2>
<p>pg_reorg can be installed like standard contrib modules.</p>
<h3>Build from source</h3>
<p>Place pg_reorg to $PGHOME/contrib/ and input make, make install.</p>
<h3>Register to database</h3>
<p>Start PostgreSQL and execute pg_reorg.sql in $PGHOME/share/contrib.</p>
<p>pg_reorg can be built with pgxs.</p>
<pre>$ cd pg_reorg
$ make USE_PGXS=1
$ su
$ make USE_PGXS=1 install</pre>
<p>Start PostgreSQL and execute the script to register functions to your database.</p>
<pre>$ pg_ctl start
$ psql -f $PGSHARE/contrib/pg_reorg.sql your_database</pre>
<h2 id="requirement">Requirements</h2>
<dl>