Re: connect to postgres from shell scripts

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: connect to postgres from shell scripts
Дата
Msg-id 19062.1124737141@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: connect to postgres from shell scripts  (Devrim GUNDUZ <devrim@gunduz.org>)
Список pgsql-admin
Devrim GUNDUZ <devrim@gunduz.org> writes:
> psql checks for PGUSER, PGPASSWORD, PGHOST, PGPORT, PGDATABASE and some
> other environmental variables. Export relevant values to the parameters.

PGPASSWORD is deprecated because it is insecure on some platforms
(to wit, those where other users can see a process' environment
variables via ps).  The ~/.pgpass file is the recommended way to go.

            regards, tom lane

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

Предыдущее
От: "Jason Minion"
Дата:
Сообщение: Re: connect to postgres from shell scripts
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: how to protect root access database