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

Re: [HACKERS] Connection Pools and DISCARD ALL

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Neil Conway <neilc(at)samurai(dot)com>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] Connection Pools and DISCARD ALL
Date: 2007-11-10 14:37:38
Message-ID: 200711101437.lAAEbcA19090@momjian.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Bruce Momjian wrote:
> Tom Lane wrote:
> > Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> > > Could we maybe have some flavor of ROLLBACK that doesn't issue a warning 
> > > if no transaction is in progress? There is precedent for this sort of 
> > > facility - DROP ... IF EXISTS.
> > 
> > Something that would actually be doable for 8.3 would be to downgrade
> > this particular WARNING to a NOTICE.  A DBA who hasn't got
> > log_min_messages set higher than NOTICE hasn't really got a lot of room
> > to whine about bulky logs.
> 
> I have developed the attached patch to implement this.  I assume we want
> to change ABORT outside a transaction from WARNING to NOTICE, but not
> COMMIT.

Patch applied:
	
	test=> ROLLBACK;
	NOTICE:  there is no transaction in progress
	ROLLBACK

Commit is unchanged:

	test=> COMMIT;
	WARNING:  there is no transaction in progress
	COMMIT

-- 
  Bruce Momjian  <bruce(at)momjian(dot)us>        http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

In response to

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2007-11-10 15:40:34
Subject: Re: Fix for stop words in thesaurus file
Previous:From: Michael GlaesemannDate: 2007-11-10 13:41:49
Subject: Re: minimal update

pgsql-patches by date

Next:From: Bruce MomjianDate: 2007-11-10 15:40:34
Subject: Re: Fix for stop words in thesaurus file
Previous:From: Bruce MomjianDate: 2007-11-10 05:06:15
Subject: Re: [HACKERS] pg_ctl configurable timeout

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