Password as a command line argument to createuser

Поиск
Список
Период
Сортировка
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