Re: Passing password in psql command

From: Marco Nietz <pg(at)mnietz(dot)de>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Passing password in psql command
Date: 2015-03-02 09:33:31
Message-ID: 54F42E6B.4080009@mnietz.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

The best way is propably to use a .pgpass file, please see:
https://wiki.postgresql.org/wiki/Pgpass for details

Marco

Am 02.03.2015 um 10:27 schrieb Technical Doubts:
> Dear Team,
> We are unable to connect to PostgreSQL db using psql by passing
> password parameter. If we don't give password, then on password promt
> it's accepting the password we type. But our scheduler script is
> having the psql line with password parameter. Helps highly
> appreciated. Thanks in advance.
> -
> John

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message hubert depesz lubaczewski 2015-03-02 09:42:58 Re: Passing password in psql command
Previous Message Technical Doubts 2015-03-02 09:27:46 Passing password in psql command