Re: Possible bug with ALTER LANGUAGE ... OWNER TO ...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Erik Jones <ejones(at)engineyard(dot)com>
Cc: PostgreSQL List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Possible bug with ALTER LANGUAGE ... OWNER TO ...
Date: 2008-12-08 21:42:02
Message-ID: 1756.1228772522@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Erik Jones <ejones(at)engineyard(dot)com> writes:
> I've just run up against a problem with ALTER LANGUAGE ... OWNER
> TO ... wherein the change of ownership does not propagate to a
> language's handler and validator functions preventing you from
> dropping the role if it created a language. I'm assuming a valid
> workaround is manually change the owner of the handler and validator
> functions but I'd think that changing a languages owning role should
> propagate to any other objects created when the language was created.

Why? The underlying functions are independent objects, in the general
case.

What you really want for this case is REASSIGN OWNED, I think.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2008-12-08 21:58:42 Problems With Bad PID and Missing Socket
Previous Message Erik Jones 2008-12-08 21:34:04 Possible bug with ALTER LANGUAGE ... OWNER TO ...