Re: Number of connections

Поиск
Список
Период
Сортировка
От Raphael Bauduin
Тема Re: Number of connections
Дата
Msg-id 20030518122859.GA25073@raphael
обсуждение исходный текст
Ответ на Number of connections  ("David Busby" <busby@pnts.com>)
Ответы Re: Number of connections
Список pgsql-php
A related mail I tried to post on the list yesterday but that I got
back....

when inserting a record in a PHP script, I sometimes use the currval
function on the corresponding sequence to get the id of the row
inserted.

Maybe a stupid question, but I wondered if when using persisten
connection, I could be sure there would be no problem. From the doc,
currval  "Returns the value most recently obtained by nextval  for this
sequence in the current server process."

Can you confirm me several script using the same persistent connection
in parallel are in separate server processes?

Thanks.

Raph



On Sat, May 17, 2003 at 11:53:44AM -0700, David Busby wrote:
> List,
>     I cannot tell from the documentation if pg_pconnect() or pg_connect()
> are really different in how the connection pool is managed.  Does anyone
> know if that is the case?  Seems that using pg_pconnect would dictate "use a
> pooled connection" and pg_connect is "use a pooled connection, or make a new
> one".  On "live" apps which is better to use, seems pg_pconnect.  Thoughts?
>
> David Busby
> Systems Engineer
> busby@pnts.com
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

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

Предыдущее
От: Philipp Ottlinger
Дата:
Сообщение: Re: Number of connections
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: Number of connections