[pgcluster: 452] create tableの挙動について

Wataru Oguro oguro @ zenrin-datacom.net
2004年 8月 5日 (木) 11:04:03 JST


oguroです。

・RedHatLinux7.3(クラスタサーバ2台、レプリケーションサーバ1台)
・PGCluster1.0.7av11

上記環境で、create table 〜 as select * from 〜;というDDLを実行すると、
トランザクション外ではレプリケーションされないようです。
(begin;〜commit;で括るとレプリケーションされました。)

1.0.6では可能だったのですが。。。

具体的な手順は以下の通りです。

1.DBへ接続(クラスタサーバ1、2)
 psql test

2.テーブル作成クエリーを発行(クラスタサーバ2)
 create table test3 as select * from test;

3.テーブルの確認(クラスタサーバ1、2)
 \d

 /* クラスタサーバ1の結果 */
Schema | Name | Type | Owner
--------+------------------+----------+----------
public | test | table | postgres
public | test3 | table | postgres
(2 rows)

/* クラスタサーバ2の結果 */
Schema | Name | Type | Owner
--------+------------------+----------+----------
public | test | table | postgres
(1 rows)


上記でお伝えしたとおり、begin;〜commit;で明示的トランザクションで括ると
レプリケーションされます。
通常のcreate tableは問題なく動作しています。
大変でしょうが、ご確認の程よろしくお願いいたします。

#どこかで1.0.7ではまだ完全に対応していないという内容を見たような見ない
ような・・・・




pgcluster メーリングリストの案内