Re: Number of connections - Mailing list pgsql-php

From Raphael Bauduin
Subject Re: Number of connections
Date
Msg-id 20030518122859.GA25073@raphael
Whole thread Raw
In response to Number of connections  ("David Busby" <busby@pnts.com>)
Responses Re: Number of connections
List 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 by date:

Previous
From: Philipp Ottlinger
Date:
Subject: Re: Number of connections
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: Number of connections