Re: [HACKERS] Connection Pools and DISCARD ALL - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: [HACKERS] Connection Pools and DISCARD ALL
Date
Msg-id 200711101437.lAAEbcA19090@momjian.us
Whole thread Raw
In response to Re: [HACKERS] Connection Pools and DISCARD ALL  (Bruce Momjian <bruce@momjian.us>)
List pgsql-patches
Bruce Momjian wrote:
> Tom Lane wrote:
> > Andrew Dunstan <andrew@dunslane.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@momjian.us>        http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

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

pgsql-patches by date:

Previous
From: Albert Cervera i Areny
Date:
Subject: Re: Contrib docs v1
Next
From: Bruce Momjian
Date:
Subject: Re: Fix for stop words in thesaurus file