Re: Connection Pools and DISCARD ALL

From: Neil Conway <neilc(at)samurai(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Connection Pools and DISCARD ALL
Date: 2007-10-04 20:03:22
Message-ID: 1191528202.6191.6.camel@dell.linuxdev.us.dell.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2007-10-04 20:14:51 Re: Connection Pools and DISCARD ALL
Previous Message Alvaro Herrera 2007-10-04 19:33:35 Re: type money causes unrestorable dump

Browse pgsql-patches by date

  From Date Subject
Next Message Simon Riggs 2007-10-04 20:14:51 Re: Connection Pools and DISCARD ALL
Previous Message Tom Lane 2007-10-04 19:26:53 Re: initdb of regression test failed.