Re: connect to postgres from shell scripts

Поиск
Список
Период
Сортировка
От Jason Minion
Тема Re: connect to postgres from shell scripts
Дата
Msg-id 0105A1BF505D304E9E5AF38B63E40E4E808011@EXCHANGE.siglercompanies.com
обсуждение исходный текст
Ответ на connect to postgres from shell scripts  (Hemapriya <priyam_1121@yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: Sean Chittenden
Дата:
Сообщение: Re: Corrupted data, best course of repair?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: connect to postgres from shell scripts