nohup psql does not read .pgpass

Поиск
Список
Период
Сортировка
От Hans Ginzel
Тема nohup psql does not read .pgpass
Дата
Msg-id 33fe494f9603a9a55578840ca7f603e9@artax.karlin.mff.cuni.cz
обсуждение исходный текст
Ответы Re: nohup psql does not read .pgpass  (Hans Ginzel <hans@matfyz.cz>)
Список pgsql-novice
Hello!

Can you, please, help me determinate why psql does not read
the ~/.pgpass file when used with nohup?

echo 'select 1+1' >one.sql
psql -a --file=one.sql db    # works
time psql -a --file=one.sql db    # works
nohup psql -a --file=one.sql db    # asks for password

Environment variables are same
env >e
nohup env >ne
diff e ne
26c26
< _=/bin/env
---
> _=/usr/bin/nohup

psql --version
psql (PostgreSQL) 9.4.0
nohup --version
nohup (GNU coreutils) 8.4
cat /etc/system-release
CentOS release 6.6 (Final)

I have read and searched
http://www.postgresql.org/docs/9.4/static/app-psql.html
http://www.postgresql.org/docs/9.4/static/libpq-pgpass.html
but did not find any indices.

Regards
Hans Ginzel


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

Предыдущее
От: Pascal Cloup
Дата:
Сообщение: Fwd: large objects
Следующее
От: Hans Ginzel
Дата:
Сообщение: Re: nohup psql does not read .pgpass