Re: DROP OWNED BY

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: DROP OWNED BY
Date: 2005-08-14 01:37:13
Message-ID: 20050814013713.GA6194@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Aug 13, 2005 at 10:09:35AM -0400, Tom Lane wrote:
> Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> writes:
> > I'm working on the promised DROP OWNED patch, and just noticed that it
> > needs modifications to the Grant/Revoke machinery that are too invasive
> > to consider for 8.1; the problem is that ExecuteGrantStmt takes textual
> > names for objects and grantees, and what I have from pg_shdepend are
> > Oids.
>
> So refactor the GrantStmt code into a layer that translates to OIDs and
> another layer that does the work. The other way doesn't sound good to
> me; it is prone to race conditions against someone doing a RENAME.

Roger. I'll produce a patch for 8.2.

--
Alvaro Herrera (<alvherre[a]alvh.no-ip.org>)
"Es filósofo el que disfruta con los enigmas" (G. Coli)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2005-08-14 01:42:45 Re: psql SET/RESET/SHOW tab completion
Previous Message Andrew Dunstan 2005-08-13 22:41:22 Re: distributed performance testing