From: | "Jason Minion" <jason(dot)minion(at)sigler(dot)com> |
---|---|
To: | "Hemapriya" <priyam_1121(at)yahoo(dot)com>, <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: connect to postgres from shell scripts |
Date: | 2005-08-22 17:56:36 |
Message-ID: | 0105A1BF505D304E9E5AF38B63E40E4E808011@EXCHANGE.siglercompanies.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Take a look at the .pgpass file, some info at:
http://www.postgresql.org/docs/8.0/interactive/libpq-pgpass.html
Doing that, your password is still as secure as your .pgpass file,
which hopefully is more secure than your script.
-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org]On Behalf Of Hemapriya
Sent: Monday, August 22, 2005 10:43 AM
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] connect to postgres from shell scripts
Hi,
I would like to know how to connect to postgres from
shell scripts using a password protected user.
Is there a way to embed the password in psql login.
It keeps prompting for the passwords.
Any hint is appreciated.
Thanks
Priya
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-08-22 18:59:01 | Re: connect to postgres from shell scripts |
Previous Message | Chris Travers | 2005-08-22 17:47:38 | Re: connect to postgres from shell scripts |