Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 9D137C83CB2 for ; Tue, 10 Jul 2012 18:43:40 -0300 (ADT) Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SoiDb-0006ck-Ff for pgsql-bugs@postgresql.org; Tue, 10 Jul 2012 21:43:40 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1SoiDO-0001yE-0z; Tue, 10 Jul 2012 17:43:26 -0400 Date: Tue, 10 Jul 2012 17:43:26 -0400 From: Bruce Momjian To: Maciek Sakrejda Cc: Robert Haas , Tom Lane , pgsql-bugs@postgresql.org Subject: Re: BUG #6706: pg_upgrade fails when plpgsql dropped/re-created Message-ID: <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> <20120706233441.GA26828@momjian.us> <20120707144544.GF26828@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/72 X-Sequence-Number: 33548 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 http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +