Re: Connection Pools and DISCARD ALL - Mailing list pgsql-hackers

From Neil Conway
Subject Re: Connection Pools and DISCARD ALL
Date
Msg-id 1191528202.6191.6.camel@dell.linuxdev.us.dell.com
Whole thread Raw
In response to Re: Connection Pools and DISCARD ALL  (Simon Riggs <simon@2ndquadrant.com>)
Responses Re: Connection Pools and DISCARD ALL
List pgsql-hackers
On Thu, 2007-10-04 at 15:50 +0100, Simon Riggs wrote:
> On Thu, 2007-10-04 at 10:29 -0400, Tom Lane wrote:
> >  Somebody who wants the
> > above behavior can send "ROLLBACK; DISCARD ALL".
> 
> ...which generates an ERROR if no transaction is in progress and fills
> the log needlessly.

Well, it's a WARNING, but your point is taken. Can't a clueful interface
just check what the transaction status of the connection is, rather than
unconditionally issuing a ROLLBACK?

-Neil




pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: type money causes unrestorable dump
Next
From: Simon Riggs
Date:
Subject: Re: Connection Pools and DISCARD ALL