Add "replicate_select" directive.
authorYoshiyuki Asaba <y-asaba at pgfoundry.org>
Fri, 3 Aug 2007 08:25:10 +0000 (08:25 +0000)
committerYoshiyuki Asaba <y-asaba at pgfoundry.org>
Fri, 3 Aug 2007 08:25:10 +0000 (08:25 +0000)
definePgpoolConfParam.php
lang/en.lang.php
lang/ja.lang.php
templates/pgconfig.tpl

index 56007f60491676837a6c92e07ceb1dd8eadc09e7..35dd75e302c82aeae5e6882cac915a6ae26c0e40 100644 (file)
@@ -114,6 +114,10 @@ $key = 'replication_stop_on_mismatch';
 $pgpoolConfigParam[$key]['type'] ='B';
 $pgpoolConfigParam[$key]['default'] =false;
 
+$key = 'replicate_select';
+$pgpoolConfigParam[$key]['type'] ='B';
+$pgpoolConfigParam[$key]['default'] =false;
+
 $key = 'reset_query_list';
 $pgpoolConfigParam[$key]['type'] ='C';
 $pgpoolConfigParam[$key]['default'] ='ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT';
index 88ffbb825bc85bfbfe2e81e1e0b6516fc04afd26..372cee93657e20ed7429169ea4d2bbb9443208b1 100644 (file)
@@ -59,6 +59,7 @@ $message = array(
        'descRecovery_password' => 'PostgreSQL user password for online recovery',
     'descReplication_mode' => 'Set this to true if you are going to use replication functionality',
     'descReplication_stop_on_mismatch' => 'Stop replication mode on data mismatch between master and secondary',
+       'descReplicate_select' => 'If true, replicate SELECT queries. If false, send only to maseter ',
     'descReplication_strict' => 'If true, pgpool will wait for the completion of the master query before sending a query to the secondary server',
     'descReplication_timeout' => 'In non strict replication mode, there will be a risk of deadlock',
     'descReset_query_list' => 'Semicolon separated SQL commands to be issued at the end of session',
index eeeb21357c1e054793a5ab9a523fe80ba280aff8..3139b50e7ebff5261e88c18f08dff8b78c879796 100644 (file)
@@ -59,6 +59,7 @@ $message = array(
     'descRecovery_password' => 'リカバリを行うためのPostgreSQLユーザパスワード',
     'descReplication_mode' => 'レプリケーションモードの有効化',
     'descReplication_stop_on_mismatch' => 'trueを指定するとマスタとセカンダリの間でデータの不一致があった場合に強制的に縮退運転',
+       'descReplicate_select' => 'true ならば SELECT をレプリケーションし、false ならばマスタにのみ送信',
     'descReplication_strict' => 'masterの問い合わせ処理の完了を待ってからsecondaryの処理',
     'descReplication_timeout' => 'replication_strictがfalseのときにデッドロックを監視するためのタイムアウト時間',
     'descReset_query_list' => 'セッションが終了するときにコネクションを初期化するためのSQLコマンド',
index 08d8b00a62d33a95eaf08e4e21cabc6526870192..095f2da1fb470fe8cee98fe33e79bcefcc7a6206 100644 (file)
@@ -419,6 +419,18 @@ function cancelNode() {
           {else}
           <td><input type="checkbox" name="replication_stop_on_mismatch" id="replication_stop_on_mismatch" value="false" /></td>
           {/if} </tr>
+        <tr> {if $error.replicate_select != null}
+          <th class="error"><label>{$message.descReplicate_select|escape}</label>
+                                       <br />replicate_select</th>
+          {else}
+          <th><label>{$message.descReplicate_select|escape}</label>
+                                       <br />replicate_select</th>
+          {/if}
+          {if $params.replicate_select == 'true'}
+          <td><input type="checkbox" name="replicate_select" id="replicate_select" value="true" checked="checked" /></td>
+          {else}
+          <td><input type="checkbox" name="replicate_select" id="replicate_select" value="false" /></td>
+          {/if} </tr>
         <tr> {if $error.reset_query_list != null}
           <th class="error"><label>{$message.descReset_query_list|escape}</label>
           <br />reset_query_list (string)</th>