Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKS2e-0008PK-W1 for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Jun 2017 16:18:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKS2e-00069O-IY for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Jun 2017 16:18:12 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKS2e-00069E-5c for pgsql-bugs@postgresql.org; Mon, 12 Jun 2017 16:18:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKS2b-0004j2-Mc for pgsql-bugs@postgresql.org; Mon, 12 Jun 2017 16:18:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v5CGI6MW019749; Mon, 12 Jun 2017 12:18:06 -0400 From: Tom Lane To: Peter Eisentraut cc: neil@postgrescompare.com, pgsql-bugs@postgresql.org Subject: Re: BUG #14701: pg_dump fails to dump pg_catalog schema In-reply-to: References: <20170610203905.26508.74104@wrigleys.postgresql.org> <10396.1497226792@sss.pgh.pa.us> Comments: In-reply-to Peter Eisentraut message dated "Mon, 12 Jun 2017 12:02:47 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19747.1497284286.1@sss.pgh.pa.us> Date: Mon, 12 Jun 2017 12:18:06 -0400 Message-ID: <19748.1497284286@sss.pgh.pa.us> 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 Peter Eisentraut writes: > On 6/11/17 20:19, Tom Lane wrote: >> Alternatively, I think that CREATE COLLATION >> ought to grow the ability to accept "provider = default" and pg_dump >> should use that. > We could probably do that at least in pg_dump. What are the > expectations for pg_catalog schema dumps? Are they supposed to be > restorable? Hmm, well, actually not --- it certainly wouldn't make any sense to try to create pg_class again, for instance. You could imagine changing the schema name and creating a clone of all the objects, but that only works for objects with schema-qualified names. So mostly this is only useful for documentation, which I think is Neil's use-case anyway. That leads to the idea that it would be okay to let pg_dump print "provider = default" but *not* let CREATE COLLATION accept that. If we did that and also disallowed cloning the default collation, then we'd have the property that only the original default collation has provider 'd', and the existing code would continue to work. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs