Re: psql prompting for password. Can we suppress it?

From: "Milen A(dot) Radev" <milen(at)radev(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: psql prompting for password. Can we suppress it?
Date: 2007-07-27 11:43:06
Message-ID: f8clob$ccp$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Pradeep Rai написа:
> Hello,
>
> We are trying to perform bulk insert into PostGre database with the help of
> a text file (containing n INSERT statements), and then invoking psql command
> from a batch file.
>
> "psql -d <database name> -f <file-name.sql> -h <server-ip> -U <username>"
>
> The issue is that the psql command window prompts for the password. Have you
> got any idea how to suppress it?

1.http://www.postgresql.org/docs/current/static/libpq-pgpass.html
2.http://www.postgresql.org/docs/current/static/auth-methods.html#AUTH-TRUST

--
Milen A. Radev

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2007-07-27 13:07:07 Re: BUG #3493: Cannot find data with = operator
Previous Message Michał Niklas 2007-07-27 10:55:56 Re: BUG #3493: Cannot find data with = operator