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

Re: Connection Pools and DISCARD ALL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Connection Pools and DISCARD ALL
Date: 2007-10-04 14:29:00
Message-ID: 20312.1191508140@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> As committed, DISCARD ALL does everything but cannot be issued inside a
> transaction block.

> I'd like to propose that DISCARD ALL also issue a ROLLBACK command if it
> is issued from within a transaction block.

That was *intentional* to prevent mistakes.  Somebody who wants the
above behavior can send "ROLLBACK; DISCARD ALL".

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2007-10-04 14:43:16
Subject: Re: First steps with 8.3 and autovacuum launcher
Previous:From: Simon RiggsDate: 2007-10-04 14:27:52
Subject: Re: First steps with 8.3 and autovacuum launcher

pgsql-patches by date

Next:From: Simon RiggsDate: 2007-10-04 14:50:16
Subject: Re: Connection Pools and DISCARD ALL
Previous:From: Simon RiggsDate: 2007-10-04 14:11:22
Subject: Connection Pools and DISCARD ALL

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