Password as a command line argument to createuser

Поиск
Список
Период
Сортировка
От Jane Ren
Тема Password as a command line argument to createuser
Дата
Msg-id 1745.66.27.114.60.1198044253.squirrel@acs-webmail.ucsd.edu
обсуждение исходный текст
Ответы Re: Password as a command line argument to createuser  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: Password as a command line argument to createuser  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Password as a command line argument to createuser  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-general
Hi,

I need to write a script that creates a new user with a password
automatically.

Is there a way I can specify the password as a command line argument to
createuser?

It looks like postgres does not read from stdin, but from /dev/tty.

Thanks

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

Предыдущее
От: Andrew Nesheret
Дата:
Сообщение: foreign key constraint, planner ignore index.
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Password as a command line argument to createuser