File tree Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -291,11 +291,15 @@ <h2 id="details">詳細</h2>
291
291
最後にシステムカタログを直接書き換えることで、元のテーブルと名前を交換しています。</ p >
292
292
293
293
< 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 >
299
303
300
304
< h2 id ="requirement "> 動作環境</ h2 >
301
305
< dl >
Original file line number Diff line number Diff line change @@ -279,11 +279,15 @@ <h2 id="details">Details</h2>
279
279
Then, it updates system catalog directly to swap the work table and the original one.</ p >
280
280
281
281
< 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 >
287
291
288
292
< h2 id ="requirement "> Requirements</ h2 >
289
293
< dl >
You can’t perform that action at this time.
0 commit comments