pgsql: initdb: Fix for mixed-case superuser names

Lists: pgsql-committers
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: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
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(-)