Create database without entering password at command line - Mailing list pgsql-general

From Nathan Thatcher
Subject Create database without entering password at command line
Date
Msg-id d9c17fb40805191723w127e5ef6y60ffe83ce2e5f786@mail.gmail.com
Whole thread Raw
Responses Re: Create database without entering password at command line  (Chris <dmagick@gmail.com>)
List pgsql-general
I am trying to automatically create a database right after installing
postgres. I launch the silent install (Windows) from my own executable
and once it is done I need to create a database, tables, etc. I am
trying to find a way to do this without having to explicitly enter the
password in at the command prompt. What is the best way to do this?

Thanks,
Nate

pgsql-general by date:

Previous
From: Dragan Zubac
Date:
Subject: Re: Vacuuming on heavily changed databases
Next
From: "Dan Joo"
Date:
Subject: psql: FATAL: Ident authentication failed for user "postgres"