[pgsql-jp: 32368] Re: pgpoolをうまく動かせない

TANABE Junnichi jun @ lmns.biz
2004年 2月 26日 (木) 16:48:52 JST


お世話になります。
皆様レスポンス下さりありがとうございます。

----- Original Message ----- 
From: "Tatsuo Ishii" <t-ishii @ sra.co.jp>
To: <pgsql-jp @ ml.postgresql.jp>
Sent: Thursday, February 26, 2004 3:47 PM
Subject: [pgsql-jp: 32366] Re: pgpoolをうまく動かせない


>
> すみません.pgpoolはまだ7.4に対応していません.できれば7.3で検証してい
> ただけないでしょうか.

あぁ、、、そうなんですね。
石井さんのpgpoolのページに7.4について触れられていなかったので
嫌な予感はしていたのですけれどね。(笑

ちょっと都合でこれらの環境は戻すのは難しいですので、別のサーバーで
検証してみました。とりあえず何とか動かせたのですが、いくつか
挙動が変な部分がありましたので、念の為、ご報告いたします。
# 私が変な事をしてるんでしょう。(苦笑

「環境3」
OS: Debian/Sarge
Kernel: Linux2.6.0
RAM: 256MB
PostgreSQL: 7.3.4(debパッケージ, pg_hba.conf: localのみtrust@テスト前)
pgpool: 0.1.8

↑の状態ですと、
$ psql -Uwww-data -p9999 test
psql: server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.

(DEBUGメッセージ)← (pgpool -d -n)
DEBUG: pid 28438: I am 28438
DEBUG: pid 28373: failover_handler called
DEBUG: pid 28389: I am 28389 accept fd 5
DEBUG: pid 28389: Protocol Version: 00020000
DEBUG: pid 28389: Protocol Major: 2 Minor:0
DEBUG: pid 28389: database: test
DEBUG: pid 28389: user: www-data
DEBUG: pid 28389: ::
ERROR: pid 28389: connect_unix_domain_socket: connect() failed: No such file
or directory
DEBUG: pid 28754: I am 28754
DEBUG: pid 28721: failover_handler called

になってしまいます。無論、
$ psql -Uwww-data test
なら接続可能です。

仕方ないので、TCP/IP経由でlocalhost向け接続を許可したら接続可能になりまし
た。
[junnichi @ mouse postgresql]$ psql -Uwww-data -p9999 test
Welcome to psql 7.3.4, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help on internal slash commands
       \g or terminate with semicolon to execute query
       \q to quit

test=> \q

ところが、 psql -l を使おうとするとこれまた接続不能です。
[junnichi @ mouse postgresql]$ psql -Uwww-data -p9999 -l
psql: Sorry, too many clients already

(DEBUGメッセージ)
DEBUG: pid 27916: I am 27916 accept fd 5
DEBUG: pid 27916: Protocol Version: 00020000
DEBUG: pid 27916: Protocol Major: 2 Minor:0
DEBUG: pid 27916: database: template1
DEBUG: pid 27916: user: www-data
ERROR: pid 27916: do_child: cannot not create backend connection


こんな感じでした。

以上宜しくお願いいたします。
# 7.4対応版欲しいです。(ぼそっ)




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