Add documentation to build the module with pgxs.
This commit is contained in:
parent
d490a1b458
commit
8ab15f2e72
@ -291,11 +291,15 @@ pg_reorg の実行中には、VACUUM と ANALYZE <STRONG>以外</STRONG> のDDL
|
||||
最後にシステムカタログを直接書き換えることで、元のテーブルと名前を交換しています。</p>
|
||||
|
||||
<h2 id="install">インストール方法</h2>
|
||||
<p>pg_reorg のインストールは、標準のcontribモジュールと同様です。</p>
|
||||
<h3>ビルド</h3>
|
||||
<p>pg_reorg のフォルダを$PGHOME/contrib/に配置し、make, make installを行ってください。</p>
|
||||
<h3>データベースへの登録</h3>
|
||||
<p>PostgreSQLを起動し、対象のデータベースに対して $PGHOME/share/contrib にある pg_reorg.sql を実行し、インストールを行ってください。</p>
|
||||
<p>pgxs を使ってビルドできます。</p>
|
||||
<pre>$ cd pg_reorg
|
||||
$ make USE_PGXS=1
|
||||
$ su
|
||||
$ make USE_PGXS=1 install</pre>
|
||||
|
||||
<p>その後、データベースに関数を登録します。</p>
|
||||
<pre>$ pg_ctl start
|
||||
$ psql -f $PGSHARE/contrib/pg_reorg.sql your_database</pre>
|
||||
|
||||
<h2 id="requirement">動作環境</h2>
|
||||
<dl>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user