pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: neil@postgrescompare.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14701: pg_dump fails to dump pg_catalog schema
Date: Mon, 12 Jun 2017 12:18:06 -0400
Message-ID: <19748.1497284286@sss.pgh.pa.us> (raw)
In-Reply-To: <d5ce7376-815f-5497-3b5a-0afe77acd112@2ndquadrant.com>
References: <20170610203905.26508.74104@wrigleys.postgresql.org>
	<10396.1497226792@sss.pgh.pa.us>
	<d5ce7376-815f-5497-3b5a-0afe77acd112@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> 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



view thread (7+ messages)  latest in thread

Message-ID: <19748.1497284286@sss.pgh.pa.us>
Permalink:  ../19748.1497284286@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19748.1497284286@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com, neil@postgrescompare.com
  Subject: Re: BUG #14701: pg_dump fails to dump pg_catalog schema
  In-Reply-To: <19748.1497284286@sss.pgh.pa.us>
  References: <20170610203905.26508.74104@wrigleys.postgresql.org> <10396.1497226792@sss.pgh.pa.us> <d5ce7376-815f-5497-3b5a-0afe77acd112@2ndquadrant.com> <19748.1497284286@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox