pgsql: initdb: Fix for mixed-case superuser names

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: initdb: Fix for mixed-case superuser names
Date: 2017-01-19 21:19:09
Message-ID: E1cUK6v-0001Cd-3J@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

initdb: Fix for mixed-case superuser names

The previous coding did not properly quote the user name before casting
it to regrole. To avoid all that, just pass in BOOTSTRAP_SUPERUSERID
numerically.

Also fix one place where the BOOTSTRAP_SUPERUSERID was hardcoded as 10.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8b0fec93ecc788c8d8b329d41ab795712d8dcc5a

Modified Files
--------------
src/bin/initdb/initdb.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-01-19 21:20:27 Re: pgsql: Add function to import operating system collations
Previous Message Robert Haas 2017-01-19 19:18:11 pgsql: Teach partitioning tests not to use DROP TABLE ... CASCADE.