Re: BUG #13741: vacuumdb does not accept valid password

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #13741: vacuumdb does not accept valid password
Дата
Msg-id 20151102192626.GG6104@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: BUG #13741: vacuumdb does not accept valid password  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: BUG #13741: vacuumdb does not accept valid password
Список pgsql-bugs
Michael Paquier wrote:
> On Mon, Nov 2, 2015 at 8:10 PM, Haribabu Kommi wrote:
> > Here I attached modified patch that gets the password from parent connection
> > if exists and use it for the child connection also.
>
> Meh? Why the parent connection? You could simply have the password as
> an argument of connectDatabase, per se the attached. That looks just
> more simple.

Thanks!  This is almost there, but there's an important missing piece --
vacuumdb --all will ask you for a password for each database.  I think
vacuum_one_database needs to receive a password from its caller too.

(Also, please use pg_strdup.)

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #13733: ~/.psql_history* corrupted
Следующее
От: jeremiah.reinmiller@atmosera.com
Дата:
Сообщение: BUG #13752: Incorrect RPM Version on 9.0.23 Release