Skip site navigation (1) Skip section navigation (2)

Re: connect to postgres from shell scripts

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 (view raw or flat)
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

pgsql-admin by date

Next:From: Tom LaneDate: 2005-08-22 18:59:01
Subject: Re: connect to postgres from shell scripts
Previous:From: Chris TraversDate: 2005-08-22 17:47:38
Subject: Re: connect to postgres from shell scripts

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group