Re: How to pass the password for login in psql - Mailing list pgsql-general

From Oisin Glynn
Subject Re: How to pass the password for login in psql
Date
Msg-id 006f01c58c8b$ec25f320$5a01a8c0@homisco.local
Whole thread Raw
In response to How to pass the password for login in psql  (Josef Springer <Josef.Springer@JOOPS.COM>)
Responses Re: How to pass the password for login in psql
List pgsql-general
BAT FILE SHOULD CONTAIN

set PGPASSWORD=postgres
"psql.exe" MYDATABASE -U postgres -f mysqlfile.sql


Oisin
----- Original Message -----
From: "Josef Springer" <Josef.Springer@JOOPS.COM>
To: <pgsql-general@postgresql.org>
Sent: Tuesday, July 19, 2005 1:26 PM
Subject: [GENERAL] How to pass the password for login in psql


> Hi,
>
> i want to use psql using the --username option. But i do not find an
> option to pass the password. I want to use psql in a batch, so i want to
> automate it.
>
> Best Regards,
> Josef Springer
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>               http://www.postgresql.org/docs/faq
>
>


pgsql-general by date:

Previous
From: Dirk Lutzebäck
Date:
Subject: Re: [ADMIN] dump/restore needed when switching from 32bit to 64bit
Next
From: Tom Lane
Date:
Subject: Re: How to pass the password for login in psql