pg.ddx.io  pgsql-committers@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: Amit Kapila <amit.kapila16@gmail.com>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Add function to import operating system collations
Date: Thu, 19 Jan 2017 11:41:19 -0500
Message-ID: <4700.1484844079@sss.pgh.pa.us> (raw)
In-Reply-To: <dfd34b03-911b-adad-57f9-42833bb15610@2ndquadrant.com>
References: <E1cTrLM-0008E8-6K@gemulon.postgresql.org>
	<CAA4eK1+z2ZwNvXMsfK-nTD5HeZqm6pLoXR7mXH_dVcbOoNYwDA@mail.gmail.com>
	<13753.1484830411@sss.pgh.pa.us>
	<dfd34b03-911b-adad-57f9-42833bb15610@2ndquadrant.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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



view thread (24+ messages)  latest in thread

Message-ID: <4700.1484844079@sss.pgh.pa.us>
Permalink:  ../4700.1484844079@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4700.1484844079@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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com, amit.kapila16@gmail.com
  Subject: Re: pgsql: Add function to import operating system collations
  In-Reply-To: <4700.1484844079@sss.pgh.pa.us>
  References: <E1cTrLM-0008E8-6K@gemulon.postgresql.org> <CAA4eK1+z2ZwNvXMsfK-nTD5HeZqm6pLoXR7mXH_dVcbOoNYwDA@mail.gmail.com> <13753.1484830411@sss.pgh.pa.us> <dfd34b03-911b-adad-57f9-42833bb15610@2ndquadrant.com> <4700.1484844079@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