scripts and ~/.psqlrc

Поиск
Список
Период
Сортировка
От teknet@poczta.onet.pl
Тема scripts and ~/.psqlrc
Дата
Msg-id 20051015160813Z1262521-16585+5@kps6.test.onet.pl
обсуждение исходный текст
Ответы Re: scripts and ~/.psqlrc  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-admin
Hello

I want to write some scripts which could connect to databse and work in background. I want to avoid situation in which
ihave to manually/interactively give appriopriate password everytime i query database. 

How can i do it in most easily way ?

I found that there is ~/.psqlrc file which could be used as configuration file for user. Can i put there databsename,
hostname,username and most important: password ?, so i could connect to my database only by typing: 
#psql

Thanx
Michal

В списке pgsql-admin по дате отправления:

Предыдущее
От: teknet@poczta.onet.pl
Дата:
Сообщение: subscribe-digest pgsql-admin
Следующее
От: Jeff Frost
Дата:
Сообщение: Re: archive_command