[pgsql-jp: 37320] pgpoolの縮退運転について

maeda @ motion.ne.jp maeda @ motion.ne.jp
2006年 6月 30日 (金) 16:12:03 JST


こんにちは。前田と申します。

マシン2台でのレプリケーションモードでpgpoolを使用しているのですが
ターミナル等でDBへ接続する際にDB名を間違えて接続すると
以下のメッセージがでて縮退運転に入ってしまいます。

psql: server closed the connection unexpectedly
      This probably means the server terminated abnormally
      before or while processing the request.

DB名を打ち間違えることは十分考えられるのですが
これを防ぐ方法はありませんでしょうか?
ご存知の方がいらっしゃいましたらご教示お願いします。

マシン環境は以下のとおりです。

マスター側)
 ・RedHat AS Ver4
 ・PostgreSQL8.1.3(ソースコンパイル)
 ・pgpool3.0.2(ソースコンパイル)

セカンダリ側)
 ・RedHat9
 ・PostgreSQL8.1.3(ソースコンパイル)

<pgpool.conf>
listen_addresses = '*'
port = 5432
socket_dir = '/tmp'
backend_host_name = '192.168.99.10'
backend_port = 6543
backend_socket_dir = '/tmp'
secondary_backend_host_name = '192.168.99.11'
secondary_backend_port = 6543
num_init_children = 32
max_pool = 4
child_life_time = 300
connection_life_time = 0
child_max_connections = 0
logdir = '/tmp'
replication_mode = true
replication_strict = true
replication_timeout = 5000
load_balance_mode = true
weight_master = 0.6
weight_secondary = 0.4
replication_stop_on_mismatch = true
reset_query_list = 'ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT'
print_timestamp = true
master_slave_mode = false
connection_cache = true
health_check_timeout = 20
health_check_period = 60
health_check_user = 'nobody'
insert_lock = true
ignore_leading_white_space = true




pgsql-jp メーリングリストの案内