Re: Can anyone help setting up pgbouncer?

Поиск
Список
Период
Сортировка
От Nick
Тема Re: Can anyone help setting up pgbouncer?
Дата
Msg-id 531a2064-6010-4e91-afc2-6a341492714a@j9g2000prh.googlegroups.com
обсуждение исходный текст
Ответ на Can anyone help setting up pgbouncer?  (Nick <nboutelier@gmail.com>)
Ответы Re: Can anyone help setting up pgbouncer?  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
On Nov 18, 12:43 pm, d...@archonet.com (Richard Huxton) wrote:
> Nick wrote:
> > So now the only step I have left is actually connecting. Im trying to
> > connect a php script topgbouncerwith
>
> > $conn = pg_connect("host=127.0.0.1 dbname=bouncer1 port=6543
> > user=nboutelier password=password");
>
> > which results in
>
> > Warning: pg_connect(): Unable to connect to PostgreSQL server: could
> > not connect to server: Connection refused Is the server running on
> > host "127.0.0.1" and accepting TCP/IP connections on port 6543
>
> OK - so we have one of two possibilities:
> 1.pgbouncerisn't listening on localhost, port 6543
> 2. Some firewall is in the way
>
> If you have root access then you can check #1. You'll get something like
> this:
>
> lsof -i | greppgbouncerpgbouncer ... TCP localhost:6432
>
> For #2, check your configuration settings and logs to see if anything is
> blocking you.
>
> --
>   Richard Huxton
>   Archonet Ltd
>
> --
> Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org)
> To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general

lsof -i | grep pgbouncer

results in no output.

В списке pgsql-general по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: pg_standby instructions
Следующее
От: Scott Felt
Дата:
Сообщение: DB terminating