Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 83D1F1B5EC5C for ; Sat, 30 Jun 2012 12:13:13 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SkzME-0002OV-8U for pgsql-bugs@postgresql.org; Sat, 30 Jun 2012 15:13:12 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q5UFCuNj011222; Sat, 30 Jun 2012 11:12:56 -0400 (EDT) From: Tom Lane To: Bruce Momjian cc: m.sakrejda@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #6706: pg_upgrade fails when plpgsql dropped/re-created In-reply-to: <20120630050007.GA20759@momjian.us> References: <20120630015430.GA912@momjian.us> <336.1341027315@sss.pgh.pa.us> <20120630050007.GA20759@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Sat, 30 Jun 2012 01:00:07 -0400" Date: Sat, 30 Jun 2012 11:12:56 -0400 Message-ID: <11221.1341069176@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/247 X-Sequence-Number: 33474 Bruce Momjian writes: > On Fri, Jun 29, 2012 at 11:35:15PM -0400, Tom Lane wrote: >> I think you're misjudging the core of the issue. The same thing >> would happen if somebody dropped and recreated the public schema. >> Or anything else that we create at initdb time but allow to be >> dropped. > I just tested dropping and recreating the 'public' schema and pg_upgrade > worked fine. Did it restore the nonstandard ownership of the schema? Your proposed fix for plpgsql won't preserve the previous state of the extension. (Maybe we don't care, but it needs consideration.) regards, tom lane