Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKD5L-0002SP-29 for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Jun 2017 00:19:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKD5J-0003AK-Lw for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Jun 2017 00:19:57 +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 1dKD5I-0003A0-QW for pgsql-bugs@postgresql.org; Mon, 12 Jun 2017 00:19:56 +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 1dKD5G-0003SL-Bv for pgsql-bugs@postgresql.org; Mon, 12 Jun 2017 00:19:55 +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 v5C0Jqjm010397; Sun, 11 Jun 2017 20:19:52 -0400 From: Tom Lane To: neil@postgrescompare.com cc: pgsql-bugs@postgresql.org, Peter Eisentraut Subject: Re: BUG #14701: pg_dump fails to dump pg_catalog schema In-reply-to: <20170610203905.26508.74104@wrigleys.postgresql.org> References: <20170610203905.26508.74104@wrigleys.postgresql.org> Comments: In-reply-to neil@postgrescompare.com message dated "Sat, 10 Jun 2017 20:39:05 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10395.1497226792.1@sss.pgh.pa.us> Date: Sun, 11 Jun 2017 20:19:52 -0400 Message-ID: <10396.1497226792@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 neil@postgrescompare.com writes: > Just installed the beta of v10 on my Mac and attempted to dump the contents > of pg_catalog as follows. > ./bin/pg_dump -U postgres -n pg_catalog > pg_dump: unrecognized collation provider: d The reason for that is that the "default" collation has collprovider = 'd', which pg_dump doesn't know what to do with, and I'm not sure it could do anything sensible with given that CREATE COLLATION doesn't accept anything corresponding to that. OTOH, I'm not real sure what is the point of the 'd' value, because I can find no code in the backend that deals with COLLPROVIDER_DEFAULT; it seems at best rather accidental that the entry works at all. We could get rid of the 'd' and have some hack to make initdb insert the appropriate 'i' or 'c' value based on USE_ICU, perhaps. Alternatively, I think that CREATE COLLATION ought to grow the ability to accept "provider = default" and pg_dump should use that. Peter? 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