Specifying psql password on command line

Поиск
Список
Период
Сортировка
От Tauren Mills
Тема Specifying psql password on command line
Дата
Msg-id NBBBLBKDJMGDNPMDGAABKEAGAEAB.tauren@servlets.net
обсуждение исходный текст
Ответы Re: Specifying psql password on command line  (Anand Raman <araman@india-today.com>)
Re: Specifying psql password on command line  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I've read the documentation for the psql commands as well as the createdb
and dropdb commands.  It looks like there is no way to specify the password
on the command line.  The password is always provided in the form of a stdin
prompt.

This makes it very difficult to use the commands from a shell script or a
cron job.    The same with redirecting to/from a file or piping it
somewhere.  It seems like there must be some way to specify the password on
the command line.

Am I missing something?  Any workarounds?

Thanks,
Tauren



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

Предыдущее
От: "Andrew Snow"
Дата:
Сообщение: RE: XML question
Следующее
От: Severin Olloz
Дата:
Сообщение: ORDER BY Problem