Thread: ‘--pwfile’ command

‘--pwfile’ command

From
Tommy Flewwelling
Date:

Hello,

Could someone tell me if the ‘--pwfile’ command can be applied to createdb.exe and psql.exe?

I found a description of ‘--pwfile’ at http://www.it-manuals.info/postgressql/app-initdb.html, which states:

--pwfile=filename

makes initdb read the database superuser's password from a file. the first line of the file is taken as the password.

I would like to disable password prompt (-W) and have the password read from a file.

Any pointers would surely be appreciated.

Thanks,

Tommy_




Are you ready for Windows Live Messenger Beta 8.5 ? Get the latest for free today!

RE: [GENERAL] ‘--pwfile’ command

From
"Albe Laurenz"
Date:
Tommy Flewwelling wrote:
> Could someone tell me if the ‘--pwfile’ command can be
> applied to createdb.exe and psql.exe?

No, but you can use the libpq password file. See
http://www.postgresql.org/docs/current/static/libpq-pgpass.html

Yours,
Laurenz Albe