Re: Connection handling of Postgre under PHP

Поиск
Список
Период
Сортировка
От ljb
Тема Re: Connection handling of Postgre under PHP
Дата
Msg-id a6ouo0$1vp2$1@jupiter.hub.org
обсуждение исходный текст
Ответ на Connection handling of Postgre under PHP  (stefan_landgraf@gmx.de (Stefan Landgraf))
Список pgsql-general
stefan_landgraf@gmx.de wrote:
> Hi group!
>
> When I use pg_pconnect(...) for connecting, is this connection
> exclusively reserved for the actual script or can other scripts
> running parallel use the same connection? I ask because I want to be
> sure that no other process will interfere into running transactions...

You can't do what you want, and it doesn't work the way you think.
Persistent connections gain you nothing in functionality as far as
scripts are concerned - it is purely a (supposed) performance issue.
Please read chapter 22 of the PHP manual, "Persistant Database Connections"
for more on this.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Looking for information about rtree index
Следующее
От: Fernando Lozano
Дата:
Сообщение: Standby databases