Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxM2v-00050m-6Q for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Apr 2017 23:15:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cxM2u-0001GT-1p for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Apr 2017 23:15:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cxM2t-0001FW-0n for pgsql-hackers@postgresql.org; Sun, 09 Apr 2017 23:14:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cxM2l-00033Z-3h for pgsql-hackers@postgresql.org; Sun, 09 Apr 2017 23:14:58 +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 v39NEfZF032605; Sun, 9 Apr 2017 19:14:41 -0400 From: Tom Lane To: Joe Conway cc: Andres Freund , Andrew Dunstan , Stephen Frost , Robert Haas , Mike Palmiotto , Peter Eisentraut , "pgsql-hackers@postgresql.org" Subject: Re: partitioned tables and contrib/sepgsql In-reply-to: <71b46178-dba0-1065-d355-28c221bf94d4@joeconway.com> References: <4897.1491507340@sss.pgh.pa.us> <63551fd7-6cdf-d1d7-95dd-c3be0283790d@joeconway.com> <55e0da74-03d5-d364-7a90-f830ae934a26@joeconway.com> <20170408142921.GB9812@tamriel.snowman.net> <4c5581ff-3246-dd6d-a9c2-ce17d8b51fbb@joeconway.com> <20170409214945.m7ig63imxrhflvuf@alap3.anarazel.de> <71b46178-dba0-1065-d355-28c221bf94d4@joeconway.com> Comments: In-reply-to Joe Conway message dated "Sun, 09 Apr 2017 15:45:14 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32603.1491779681.1@sss.pgh.pa.us> Date: Sun, 09 Apr 2017 19:14:41 -0400 Message-ID: <32604.1491779681@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Joe Conway writes: >> I turned on the buildfarm "keep" setting and looked at the diffs. The >> issue is that in there are a few places that do "SELECT ... FROM >> pg_seclabels ... ORDER BY ..." and when manually testing I get default >> database encoding "UTF8" but with the buildfarm I get "SQL_ASCII", hence >> a different sorting. > Looks like adding COLLATE "C" in the ORDER BY clauses does the trick. Is > that the preferred method for this kind of issue? Yeah, that's pretty much the standard fix nowadays. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers