[pgsql-jp: 27020] usogresの仕様について質問がございます。
nakanohideyuki
hnakano @ fastnet.co.jp
2002年 8月 14日 (水) 11:27:49 JST
中野と申します。
現在以下の環境でusogresを使用しています。
【ホストA】
FreeBSD4.4
postgresql-7.2.1
usogres-0.8.1
【ホストB】
Kondara2.0
Postgresql-7.2.1
ホストAをマスターDBにし、usogresを5432のポートで
待機させており、postmasterは5434のポートであげてます。
ホストBはスレーブDBとしており、postmasterは5436のポート
であげてます。
各設定は以下のようになっています。
---------/usr/local/etc/usogresrc(ホストA)の設定------------
# host address that usogres performed
host = "192.168.1.11" ←ホストAのIP(仮)
# port address that usogres performed
port = 5432
# host address that postgres original server performed
hostorg = "192.168.1.11" ←ホストAのIP(仮)
# port address that postgres original server performed
portorg = 5434
# host address that postgres backup server performed
hostcopy = "192.168.1.12" ←ホストBのIP(仮)
# port address that postgres backup server performed
portcopy = 5436
-------------------------------------------------
--------- .cshrc(ホストA)の設定 --------------------------
setenv PGHOST 192.168.1.11
setenv PGPORT 5432
------------------------------------------------------
質問ですが、
ホストA側でpsqlを起動するときに
'psql -h 192.168.1.11 -p 5432' では正常に起動できますが、
'psql -h localhost -p 5432' では以下のエラーメッセージがでて
接続できません。
--------------- エラーメッセージ ------------------------
%psql -h localhost -p 5432
psql: could not connect to server: Connection refused
Is the server running on host localhost and accepting
TCP/IP connections on port 5432?
-----------------------------------------------------
usogresを介さない接続ですと、
'psql -h 192.168.1.11 -p 5432'
'psql -h localhost -p 5432'
とも正常に接続できます。
上記の現象は、usogresの仕様なのでしょうか?
ご教授よろしくお願い致します。
pgsql-jp メーリングリストの案内