pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Raphael Bauduin <raphael.bauduin@be.easynet.net>
To: David Busby <busby@pnts.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Number of connections
Date: Sun, 18 May 2003 14:28:59 +0200
Message-ID: <20030518122859.GA25073@raphael> (raw)
In-Reply-To: <03bf01c31ca5$ac0e5d70$1100000a@busbydev>
References: <03bf01c31ca5$ac0e5d70$1100000a@busbydev>

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



view thread (9+ messages)  latest in thread

Message-ID: <20030518122859.GA25073@raphael>
Permalink:  ../20030518122859.GA25073@raphael/
Also on:    postgresql.org/message-id/20030518122859.GA25073@raphael

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: raphael.bauduin@be.easynet.net, busby@pnts.com
  Subject: Re: Number of connections
  In-Reply-To: <20030518122859.GA25073@raphael>
  References: <03bf01c31ca5$ac0e5d70$1100000a@busbydev> <20030518122859.GA25073@raphael>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox