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

[bugfix] DISCARD ALL does not release advisory locks

From: "Marko Kreen" <markokr(at)gmail(dot)com>
To: "Postgres Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: [bugfix] DISCARD ALL does not release advisory locks
Date: 2008-11-24 15:07:04
Message-ID: e51f66da0811240707l7af1ea4fg1058ae8a94bf9fe0@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
It was brought to my attention that DISCARD ALL
does not release advisory locks:

  http://pgfoundry.org/tracker/index.php?func=detail&aid=1010499&group_id=1000258&atid=983

Thus connection managers / poolers need to do that manually.

This obviously means DISCARD ALL needs fixing.  Applied
patch adds LockReleaseAll(USER_LOCKMETHOD, true) call
to DiscardAll().

Should this also be fixed in 8.3?

-- 
marko

Attachment: discard_advisory_locks.diff
Description: text/x-patch (676 bytes)

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2008-11-24 15:08:44
Subject: Re: [bugfix] DISCARD ALL does not release advisory locks
Previous:From: Robert HaasDate: 2008-11-24 15:04:01
Subject: Re: blatantly a bug in the documentation

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