Re: Shared dependency patch - Mailing list pgsql-patches

From Alvaro Herrera
Subject Re: Shared dependency patch
Date
Msg-id 20050309040531.GA13297@dcc.uchile.cl
Whole thread Raw
In response to Re: Shared dependency patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Shared dependency patch
List pgsql-patches
On Mon, Feb 14, 2005 at 10:09:55PM -0500, Bruce Momjian wrote:

> With us moving to a normal 8.1 release do you want to submit submit to
> be applied to CVS?

Here it is in a single tarball.  I keep the previous description below.
Thanks,



Here is the latest installation of my shared dependency patch.
As some of you may remember, the purpose of this patch is to record
dependencies on shared objects, such as users, groups and tablespaces,
from regular database objects.  This is done on a new shared system
catalog called pg_shdepend, so that when a backend wants to drop any
shared object, it can easily verify whether it is referenced in other
database.

I have upgraded the patch to include references present in ACLs, and to
lock the objects appropiately before checking.  To do this I had to
change the LOCKTAG struct somewhat, using a previous patch by Rod Taylor
(thanks Rod!); and add a LockSharedObject() function.

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"La tristeza es un muro entre dos jardines" (Khalil Gibran)

Attachment

pgsql-patches by date:

Previous
From: Mark Kirkwood
Date:
Subject: Re: Display Pg buffer cache (WIP)
Next
From: "Qingqing Zhou"
Date:
Subject: Re: trivial refactoring of WaitOnLock