Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUFmD-0005k2-Gh for pgsql-committers@arkaria.postgresql.org; Thu, 19 Jan 2017 16:41:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cUFmD-0001ot-3r for pgsql-committers@arkaria.postgresql.org; Thu, 19 Jan 2017 16:41:29 +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 1cUFmC-0001oU-DL for pgsql-committers@postgresql.org; Thu, 19 Jan 2017 16:41:28 +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 1cUFm9-0008IW-5C for pgsql-committers@postgresql.org; Thu, 19 Jan 2017 16:41:27 +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 v0JGfJU2004701; Thu, 19 Jan 2017 11:41:19 -0500 From: Tom Lane To: Peter Eisentraut cc: Amit Kapila , pgsql-committers Subject: Re: pgsql: Add function to import operating system collations In-reply-to: References: <13753.1484830411@sss.pgh.pa.us> Comments: In-reply-to Peter Eisentraut message dated "Thu, 19 Jan 2017 10:26:14 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4699.1484844079.1@sss.pgh.pa.us> Date: Thu, 19 Jan 2017 11:41:19 -0500 Message-ID: <4700.1484844079@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Peter Eisentraut writes: > On 1/19/17 7:53 AM, Tom Lane wrote: >> Hm. I see that the patch randomly changed the way that the collation >> owner is generated ... looks like it no longer works for mixed-case >> usernames. Perhaps follow this model instead: > We could just use the numeric value, like in the attached patch. WFM. Btw, I noticed that BOOTSTRAP_SUPERUSERID is hard-coded as "10" in this bit in setup_privileges(): " (SELECT E'=r/\"$POSTGRES_SUPERUSERNAME\"' as acl " " UNION SELECT unnest(pg_catalog.acldefault(" " CASE WHEN relkind = 'S' THEN 's' ELSE 'r' END::\"char\",10::oid))" " ) as a) " Is there a reasonable way to fix that? Maybe do another replace_token call for it? regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers