Re: Installed. Now what?

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Installed. Now what?
Дата
Msg-id 201111191013.22699.adrian.klaver@gmail.com
обсуждение исходный текст
Ответ на Re: Installed. Now what?  (Phoenix Kiula <phoenix.kiula@gmail.com>)
Ответы Re: Installed. Now what?  (Phoenix Kiula <phoenix.kiula@gmail.com>)
Список pgsql-general
On Saturday, November 19, 2011 12:20:07 am Phoenix Kiula wrote:

>
> service postgres start
> service pgbouncer start
>
>
> When the two "services" are started like the above, are they working
> together? The manual says psql should be restarted with the pgbouncer
> port number, for these to be working together. But what if my server
> does not have a "psql" process, but a service of postgres?

Not all that confusing. Clients talk to pgbouncer, which in turn talks to
server. All the manual is saying is that you need to redirect your requests to
the pgbouncer port from the Postgres port, using psql as an example.

>
> From within my PHP code, if I add the port number of pgbouncer in my
> "pg_connect()" function, it does not work.

Did you take a look at:

http://pgbouncer.projects.postgresql.org/doc/config.html

I have never used pgbouncer, but from above it would seem you need to set up a
[databases] section to tie pgbouncer to the Postgres server.
See:
SECTION [databases]


>
> Thanks for any insight.

--
Adrian Klaver
adrian.klaver@gmail.com

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

Предыдущее
От: pawel_kukawski
Дата:
Сообщение: invalid byte sequence for encoding "UTF8": 0x00
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: How to install latest stable postgresql on Debian