initdb initial password from file - Mailing list pgsql-patches

From Magnus Hagander
Subject initdb initial password from file
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE34BCE6@algol.sollentuna.se
Whole thread Raw
Responses Re: initdb initial password from file  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Attached is a patch that adds the option --pwfile=<filename> to initdb.
The first line of this file is used to set the new superuser password
(the same way --pwprompt asks for one).

This feature is needed for the win32 GUI installer (possibly other
installers?), which need a way to specify the password to be set. Per
previous discussions commandline parameter or environment variable are
not secure. Storing it in a file is the same thing libpq does for
~/.pgpass, and should be secure enough, I think.


//Magnus


Attachment

pgsql-patches by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: stderr & win32 admin check
Next
From: "Magnus Hagander"
Date:
Subject: Re: Cancel/Kill backend functions -- docs