Skip site navigation (1) Skip section navigation (2)

Re: PostgreSQL and PHP persistent connections

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Thies C(dot) Arntzen" <thies(at)digicol(dot)de>, Rasmus(at)candle(dot)pha(dot)pa(dot)us, Lerdorf <rasmus(at)php(dot)net>, PostgreSQL-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: PostgreSQL and PHP persistent connections
Date: 2001-02-07 20:49:21
Message-ID: 10029.981578961@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-interfacespgsql-jdbc
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> We discussed using 'ROLLBACK' before passing a connection to a new user,
> but the problem was that ROLLBACK with no open transaction causes a
> server log error message.  We discussed adding 'ROLLBACK SILENT' to fix
> this, but I believe a better, more portable solution is a simple "BEGIN
> WORK;ROLLBACK".  This will do nothing if there is no open transaction,

How is that an improvement?  It only changes the case in which you get
a NOTICE from not-in-transaction to in-transaction ...

			regards, tom lane

In response to

Responses

pgsql-interfaces by date

Next:From: Bruce MomjianDate: 2001-02-07 20:50:53
Subject: Re: PostgreSQL and PHP persistent connections
Previous:From: Thies C. ArntzenDate: 2001-02-07 19:56:12
Subject: Re: PostgreSQL and PHP persistent connections

pgsql-jdbc by date

Next:From: Bruce MomjianDate: 2001-02-07 20:50:53
Subject: Re: PostgreSQL and PHP persistent connections
Previous:From: Thies C. ArntzenDate: 2001-02-07 19:56:12
Subject: Re: PostgreSQL and PHP persistent connections

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group