Re: How to ALTER EXTENSION name OWNER TO new_owner ?

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Melvin Davidson <melvin6925(at)gmail(dot)com>, "Colin 't Hart" <colinthart(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to ALTER EXTENSION name OWNER TO new_owner ?
Date: 2017-08-09 16:19:52
Message-ID: CAOR=d=0FMYhc75yskUq11kG_P6NURKL7m45uNAgguKgwAPCT6Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Aug 9, 2017 at 10:10 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Melvin Davidson <melvin6925(at)gmail(dot)com> writes:
>> *UPDATE pg_extension SET extowner = {oid_of_new_owner} WHERE extowner =
>> {oid_from_above_statement};*
>
> Note you'll also have to modify the rows in pg_shdepend that reflect
> this ownership property.

Seems like something that should be handled by alter doesn't it?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2017-08-09 17:37:47 Re: How to ALTER EXTENSION name OWNER TO new_owner ?
Previous Message Tom Lane 2017-08-09 16:10:11 Re: How to ALTER EXTENSION name OWNER TO new_owner ?