Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WYDp4-00041H-SA for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Apr 2014 12:11:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WYDp4-0004UP-4L for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Apr 2014 12:11:14 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WYDp3-0004UI-4c for pgsql-bugs@postgresql.org; Thu, 10 Apr 2014 12:11:13 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WYDp0-0005BY-G5 for pgsql-bugs@postgresql.org; Thu, 10 Apr 2014 12:11:12 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1WYDoy-000203-VE; Thu, 10 Apr 2014 08:11:08 -0400 Date: Thu, 10 Apr 2014 08:11:08 -0400 From: Bruce Momjian To: Tom Lane Cc: chris@chrullrich.net, pgsql-bugs@postgresql.org Subject: Re: BUG #8695: Reloading dump fails at COMMENT ON EXTENSION plpgsql Message-ID: <20140410121108.GA6917@momjian.us> References: <20140331170009.GA18559@momjian.us> <20140410015218.GP8685@momjian.us> <316.1397096128@sss.pgh.pa.us> <20140410024345.GA31142@momjian.us> <1420.1397099637@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1420.1397099637@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Wed, Apr 9, 2014 at 11:13:57PM -0400, Tom Lane wrote: > Bruce Momjian writes: > > That's what I thought too, but I see a schema file in pg_extensions: > > Read the manual. > > > Should we hard-code a pg_catalog plpgsql to be skipped in pg_dump? > > No, I don't think so. > > The real issue here is that we don't have a notion of a "built-in > extension". I think this was specifically debated back when we > extension-ified plpgsql, though I don't recall details of why > we ended up not doing that. Maybe the idea was that you could > drop and then re-add plpgsql? Anyway, I think this is not such > a simple issue and a one-line hack in pg_dump is not likely to > improve matters. OK, I added a TODO: Prevent PL/pgSQL comment from throwing an error in a non-superuser restore -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs