Re: connect to postgres from shell scripts - Mailing list pgsql-admin

From Jason Minion
Subject Re: connect to postgres from shell scripts
Date
Msg-id 0105A1BF505D304E9E5AF38B63E40E4E808011@EXCHANGE.siglercompanies.com
Whole thread Raw
In response to connect to postgres from shell scripts  (Hemapriya <priyam_1121@yahoo.com>)
List 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@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Hemapriya
Sent: Monday, August 22, 2005 10:43 AM
To: pgsql-admin@postgresql.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

pgsql-admin by date:

Previous
From: Sean Chittenden
Date:
Subject: Re: Corrupted data, best course of repair?
Next
From: Tom Lane
Date:
Subject: Re: connect to postgres from shell scripts