pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marco Nietz <pg@mnietz.de>
To: pgsql-admin@postgresql.org
Subject: Re: Passing password in psql command
Date: Mon, 02 Mar 2015 10:33:31 +0100
Message-ID: <54F42E6B.4080009@mnietz.de> (raw)
In-Reply-To: <CAJyuQsGLmNfmD3a=Y64-d6cVfpc6Ummc7i+oLic6weR8Nh7-1Q@mail.gmail.com>
References: <CAJyuQsGLmNfmD3a=Y64-d6cVfpc6Ummc7i+oLic6weR8Nh7-1Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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 



-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (4+ messages)  latest in thread

Message-ID: <54F42E6B.4080009@mnietz.de>
Permalink:  ../54F42E6B.4080009@mnietz.de/
Also on:    postgresql.org/message-id/54F42E6B.4080009@mnietz.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: pg@mnietz.de
  Subject: Re: Passing password in psql command
  In-Reply-To: <54F42E6B.4080009@mnietz.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox