Re: How to pass the password for login in psql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to pass the password for login in psql
Дата
Msg-id 8013.1121797446@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to pass the password for login in psql  (Josef Springer <Josef.Springer@JOOPS.COM>)
Список pgsql-general
Josef Springer <Josef.Springer@JOOPS.COM> writes:
> i want to use psql using the --username option. But i do not find an
> option to pass the password.

There are very good reasons for that.

> I want to use psql in a batch, so i want to automate it.

Consider using a ~/.pgpass file.

            regards, tom lane

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

Предыдущее
От: "Oisin Glynn"
Дата:
Сообщение: Re: How to pass the password for login in psql
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Converting MySQL tinyint to PostgreSQL