Re: How to pass the password for login in psql

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Oisin Glynn <me(at)oisinglynn(dot)com>
Cc: Josef Springer <Josef(dot)Springer(at)JOOPS(dot)COM>, pgsql-general(at)postgresql(dot)org
Subject: Re: How to pass the password for login in psql
Date: 2005-07-19 18:35:21
Message-ID: 1121798120.8208.373.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

FYI, this is deprecated in favor of a .pgpass file.

See:

http://www.postgresql.org/docs/8.0/static/libpq-pgpass.html

On Tue, 2005-07-19 at 13:01, Oisin Glynn wrote:
> BAT FILE SHOULD CONTAIN
>
> set PGPASSWORD=postgres
> "psql.exe" MYDATABASE -U postgres -f mysqlfile.sql
>
>
> Oisin
> ----- Original Message -----
> From: "Josef Springer" <Josef(dot)Springer(at)JOOPS(dot)COM>
> To: <pgsql-general(at)postgresql(dot)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
> >
> >
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Bryden 2005-07-19 18:56:04 EXCEPTION in pl/pgsql
Previous Message Janning Vygen 2005-07-19 18:30:34 Re: Changes to not deferred FK in 8.0.3 to 7.4?