Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 4D755159B952 for ; Sat, 30 Jun 2012 00:35:34 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SkoT3-00079t-CO for pgsql-bugs@postgresql.org; Sat, 30 Jun 2012 03:35:33 +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 q5U3ZFjb000338; Fri, 29 Jun 2012 23:35:15 -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: <20120630015430.GA912@momjian.us> References: <20120630015430.GA912@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Fri, 29 Jun 2012 21:54:30 -0400" Date: Fri, 29 Jun 2012 23:35:15 -0400 Message-ID: <336.1341027315@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/243 X-Sequence-Number: 33470 Bruce Momjian writes: > I can't think of how to fix this. Perhaps we need to query the > pg_extension table as of the SELECT function all. 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. regards, tom lane