pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Maciek Sakrejda <m.sakrejda@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6706: pg_upgrade fails when plpgsql dropped/re-created
Date: Tue, 10 Jul 2012 17:43:26 -0400
Message-ID: <20120710214326.GA6315@momjian.us> (raw)
In-Reply-To: <CAOtHd0C-mZUBRV1Wb6CE4thdVyysOfODYAaRKOQQX1etBT1M3A@mail.gmail.com>
References: <19241.1341248511@sss.pgh.pa.us>
	<20120702172836.GB25966@momjian.us>
	<20120704213703.GH5578@momjian.us>
	<9917.1341462118@sss.pgh.pa.us>
	<20120705133253.GJ5578@momjian.us>
	<CA+TgmoZBoPYon_Onz8kdou8oT8FiiepBP1e8WuDANCTMQ3kmNA@mail.gmail.com>
	<20120706233441.GA26828@momjian.us>
	<CAOtHd0ByqHPBRvExZgHfX4F28sYtAu2koDFAyJ8ZPo2qZ4kN1Q@mail.gmail.com>
	<20120707144544.GF26828@momjian.us>
	<CAOtHd0C-mZUBRV1Wb6CE4thdVyysOfODYAaRKOQQX1etBT1M3A@mail.gmail.com>

On Tue, Jul 10, 2012 at 01:03:18PM -0700, Maciek Sakrejda wrote:
> So, is there hope of a better fix here for 9.2 (specifically for
> preserving extension ownership on pg_upgrade and dump/restore, though
> I understand it may not make sense to do that if we can't fix a number
> of related issues)? If not, is the below catalog-twiddling sane,
> lacking an ALTER EXTENSION foo OWNER TO ...?
> 
> postgres=# update pg_extension set extowner = (select oid from
> pg_roles where rolname = 'maciek') where extname = 'plpgsql';

There is no hope that any changes to extensions will be preserved across
upgrades any better than it was in 9.1 --- the change is only that
pg_upgrade will not fail.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +



view thread (28+ messages)  latest in thread

Message-ID: <20120710214326.GA6315@momjian.us>
Permalink:  ../20120710214326.GA6315@momjian.us/
Also on:    postgresql.org/message-id/20120710214326.GA6315@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, m.sakrejda@gmail.com, robertmhaas@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #6706: pg_upgrade fails when plpgsql dropped/re-created
  In-Reply-To: <20120710214326.GA6315@momjian.us>
  References: <19241.1341248511@sss.pgh.pa.us> <20120702172836.GB25966@momjian.us> <20120704213703.GH5578@momjian.us> <9917.1341462118@sss.pgh.pa.us> <20120705133253.GJ5578@momjian.us> <CA+TgmoZBoPYon_Onz8kdou8oT8FiiepBP1e8WuDANCTMQ3kmNA@mail.gmail.com> <20120706233441.GA26828@momjian.us> <CAOtHd0ByqHPBRvExZgHfX4F28sYtAu2koDFAyJ8ZPo2qZ4kN1Q@mail.gmail.com> <20120707144544.GF26828@momjian.us> <CAOtHd0C-mZUBRV1Wb6CE4thdVyysOfODYAaRKOQQX1etBT1M3A@mail.gmail.com> <20120710214326.GA6315@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox