Create database without entering password at command line

From: "Nathan Thatcher" <n8thatcher(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Create database without entering password at command line
Date: 2008-05-20 00:23:17
Message-ID: d9c17fb40805191723w127e5ef6y60ffe83ce2e5f786@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gurjeet Singh 2008-05-20 00:48:22 Re: Join three fields into one on same table
Previous Message Dan Joo 2008-05-20 00:18:49 psql: FATAL: Ident authentication failed for user "postgres"