Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKGi8-000580-HR for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Jun 2017 04:12:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKGi7-0006UZ-Tg for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Jun 2017 04:12:15 +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 1dKGhP-00042U-Sj for pgsql-bugs@postgresql.org; Mon, 12 Jun 2017 04:11:32 +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 1dKGhN-0007m3-Km for pgsql-bugs@postgresql.org; Mon, 12 Jun 2017 04:11:30 +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 v5C4BQIc031855; Mon, 12 Jun 2017 00:11:26 -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: <10396.1497226792@sss.pgh.pa.us> References: <20170610203905.26508.74104@wrigleys.postgresql.org> <10396.1497226792@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sun, 11 Jun 2017 20:19:52 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31853.1497240686.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 12 Jun 2017 00:11:26 -0400 Message-ID: <31854.1497240686@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 I wrote: > 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. Actually, it works only for finite values of "work". You can break it by cloning the "default" entry: regression=3D# create collation foo from "default"; WARNING: could not determine encoding for locale "": codeset is "ANSI_X3.4= -1968" WARNING: could not determine encoding for locale "": codeset is "ANSI_X3.4= -1968" CREATE COLLATION regression=3D# select * from pg_collation where collname =3D 'foo'; collname | collnamespace | collowner | collprovider | collencoding | collc= ollate | collctype | collversion=20 ----------+---------------+-----------+--------------+--------------+------= -------+-----------+------------- foo | 2200 | 10 | d | 0 | = | |=20 (1 row) regression=3D# select * from text_tbl order by f1 collate foo;=20=20 server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server was lost. Attempting reset: Failed. The crash is from a SIGSEGV that I didn't bother to identify the exact location of. (Note: this is in a non-ICU-enabled build, prevailing locale "C".) It wouldn't be unreasonable to disallow cloning "default", perhaps, but I'd be inclined to want to plug the crash problem more directly than that. regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs