Re: Postgres Pg_connect PHP

Поиск
Список
Период
Сортировка
От Vyacheslav Kalinin
Тема Re: Postgres Pg_connect PHP
Дата
Msg-id 9b1af80e0906110604r78f0ee31qf7d2a3ef6c545a85@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Postgres Pg_connect PHP  (Dimitri Fontaine <dfontaine@hi-media.com>)
Список pgsql-general


On Thu, Jun 11, 2009 at 4:36 PM, Dimitri Fontaine <dfontaine@hi-media.com> wrote:
Vyacheslav Kalinin <vka@mgcp.com> writes:

>  $conn = pg_pconnect("dbname=foo");

Please reconsider and use plain pg_connect().
--
dim
Uh, I just copied/pasted that part from somewhere in PHP manual, personally I tend to use plain pg_connect and pgbouncer for pooling when needed.
For those curious why pconnect is not the best option for connection pooling - discussion on this topic rises in this list from time to time, check this out, for instance:

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

Предыдущее
От: Phil Longstaff
Дата:
Сообщение: Re: Libpq on windows
Следующее
От: Marko Kreen
Дата:
Сообщение: Re: queries on xmin