Re: Prepared statement already exists

Поиск
Список
Период
Сортировка
От Chris
Тема Re: Prepared statement already exists
Дата
Msg-id 493F3EA7.1010708@gmail.com
обсуждение исходный текст
Ответ на Re: Prepared statement already exists  (Richard Huxton <dev@archonet.com>)
Ответы Re: Prepared statement already exists  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-general
Richard Huxton wrote:
> WireSpot wrote:
>> This mechanism is still not perfect. Technically it is still possible
>> for race conditions to appear. Apparently (in PHP at least) pg_connect
>> does persistent connections by default.
>
> Nope - pg_pconnect() does that. Multiple calls to pg_connect() within
> the same script will give the same connection though.

IFF you supply exactly the same details (db/host/port, user, pass) - if
any are different you'll get a new connection.

--
Postgresql & php tutorials
http://www.designmagick.com/


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

Предыдущее
От: Quan Zongliang
Дата:
Сообщение: Re: equal and like
Следующее
От: Robert Treat
Дата:
Сообщение: Re: Ubuntu for servers (was TurnKey PostgreSQL)