Oh, thanks. It seems you can read Japanese? -- Tatsuo Ishii SRA OSS, Inc. Japan English: http://www.sraoss.co.jp/index_en.php Japanese: http://www.sraoss.co.jp
> Tatsuo Ishii, > I'm sure there's still something worong in the section 3.2.2 > section. They are obviously different( Section number wrong and > English version lost some sentence at the end ). > English version: > ------------------------------------------------ > 3.2.2. Defining replicate_def table > > When the table that does the replication to one SQL sentence with the > table registered in dist_def by uniting tables is specified, > information on the table that does the replication (replication rule) > is registered in the table named replicate_def beforehand. The > replicate_def table has already been made when making it from the > system_db.sql file when dist_def is defined. The replicate_def table > is defined as follows. > > CREATE TABLE pgpool_catalog.replicate_def ( > dbname text, -- database name > schema_name text, -- schema name > table_name text, -- table name > col_list text[] NOT NULL, -- list of column names > type_list text[] NOT NULL, -- list of column types > PRIMARY KEY (dbname, schema_name, table_name) > ); > ------------------------------------------------ > And Japanese version: > ------------------------------------------------ > 3.2.3. テーブル replicate_def の定義 > > 一つのSQL文にテーブルの結合等でdist_defに登録したテーブルと共にレプリケーションを行うテーブルを指定する場合には、レプリケーションを行うテーブルの情報(複製ルール)をあらかじめ、replicate_def > というテーブルに登録しておきます。テーブル dist_def > の定義の際に、system_db.sqlファイルから作成した場合には、すでにreplicate_defテーブルが作成されています。 > replicate_defテーブルは以下のように定義されています。 > > CREATE TABLE pgpool_catalog.replicate_def( > dbname TEXT, -- データベース名 > schema_name TEXT, -- スキーマ名 > table_name TEXT, -- テーブル名 > col_list TEXT[] NOT NULL, -- テーブルの列名 > type_list TEXT[] NOT NULL, -- テーブルのデータ型名 > PRIMARY KEY (dbname,schema_name,table_name) > ); > > テーブル replicate_def > に格納されるデータはテーブルのメタ情報(dbname、schema_name、table_name、col_list、type_list)となります。 > > pgpool-ll > は、クエリに使われている、すべてのテーブル、カラム、型情報をdist_defまたは、replicate_defテーブルに登録している情報を用いて、クエリの解析とクエリの書き換えを行います。そのため > replicate_defテーブルに正しい情報を登録しておかないと、正しい実行結果が得られない可能性があります。 > ------------------------------------------------ > Bambo Huang _______________________________________________ Pgpool-hackers mailing list [email protected] http://pgfoundry.org/mailman/listinfo/pgpool-hackers
