Skip to content

Commit 8ab15f2

Browse files
committed
Add documentation to build the module with pgxs.
1 parent d490a1b commit 8ab15f2

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

doc/pg_reorg-ja.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,15 @@ <h2 id="details">詳細</h2>
291291
最後にシステムカタログを直接書き換えることで、元のテーブルと名前を交換しています。</p>
292292

293293
<h2 id="install">インストール方法</h2>
294-
<p>pg_reorg のインストールは、標準のcontribモジュールと同様です。</p>
295-
<h3>ビルド</h3>
296-
<p>pg_reorg のフォルダを$PGHOME/contrib/に配置し、make, make installを行ってください。</p>
297-
<h3>データベースへの登録</h3>
298-
<p>PostgreSQLを起動し、対象のデータベースに対して $PGHOME/share/contrib にある pg_reorg.sql を実行し、インストールを行ってください。</p>
294+
<p>pgxs を使ってビルドできます。</p>
295+
<pre>$ cd pg_reorg
296+
$ make USE_PGXS=1
297+
$ su
298+
$ make USE_PGXS=1 install</pre>
299+
300+
<p>その後、データベースに関数を登録します。</p>
301+
<pre>$ pg_ctl start
302+
$ psql -f $PGSHARE/contrib/pg_reorg.sql your_database</pre>
299303

300304
<h2 id="requirement">動作環境</h2>
301305
<dl>

doc/pg_reorg.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,15 @@ <h2 id="details">Details</h2>
279279
Then, it updates system catalog directly to swap the work table and the original one.</p>
280280

281281
<h2 id="install">Installations</h2>
282-
<p>pg_reorg can be installed like standard contrib modules.</p>
283-
<h3>Build from source</h3>
284-
<p>Place pg_reorg to $PGHOME/contrib/ and input make, make install.</p>
285-
<h3>Register to database</h3>
286-
<p>Start PostgreSQL and execute pg_reorg.sql in $PGHOME/share/contrib.</p>
282+
<p>pg_reorg can be built with pgxs.</p>
283+
<pre>$ cd pg_reorg
284+
$ make USE_PGXS=1
285+
$ su
286+
$ make USE_PGXS=1 install</pre>
287+
288+
<p>Start PostgreSQL and execute the script to register functions to your database.</p>
289+
<pre>$ pg_ctl start
290+
$ psql -f $PGSHARE/contrib/pg_reorg.sql your_database</pre>
287291

288292
<h2 id="requirement">Requirements</h2>
289293
<dl>

0 commit comments

Comments
 (0)