pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Raphael Bauduin <raphael.bauduin@be.easynet.net>
To: David Busby <busby@pnts.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Number of connections
Date: Fri, 23 May 2003 10:13:30 +0800
Message-ID: <15ff01c320d0$e89bb1f0$6500a8c0@fhp.internal> (raw)
References: <03bf01c31ca5$ac0e5d70$1100000a@busbydev>
	<20030518122859.GA25073@raphael>

> 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?

PHP will execute 'begin; rollback;' to your connection before passing it to
another PHP process, guaranteeing that unclosed transactions won't leak.

Chris




view thread (9+ messages)  latest in thread

Message-ID: <15ff01c320d0$e89bb1f0$6500a8c0@fhp.internal>
Permalink:  ../15ff01c320d0$e89bb1f0$6500a8c0@fhp.internal/
Also on:    postgresql.org/message-id/15ff01c320d0$e89bb1f0$6500a8c0@fhp.internal

 · 

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: chriskl@familyhealth.com.au, raphael.bauduin@be.easynet.net, busby@pnts.com
  Subject: Re: Number of connections
  In-Reply-To: <15ff01c320d0$e89bb1f0$6500a8c0@fhp.internal>
  References: <03bf01c31ca5$ac0e5d70$1100000a@busbydev> <20030518122859.GA25073@raphael> <15ff01c320d0$e89bb1f0$6500a8c0@fhp.internal>

* 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