Re: Warning about invalid .pgpass passwords

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Warning about invalid .pgpass passwords
Дата
Msg-id 4B99B777.2010508@dunslane.net
обсуждение исходный текст
Ответ на Re: Warning about invalid .pgpass passwords  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Warning about invalid .pgpass passwords  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers

Bruce Momjian wrote:
> +     /* If it was 'invalid authorization', add .pgpass mention */
> +     if (conn->dot_pgpass_used && conn->password_needed && conn->result &&
> +         /* only works with >= 9.0 servers */
> +         strcmp(PQresultErrorField(conn->result, PG_DIAG_SQLSTATE),
> +             ERRCODE_INVALID_PASSWORD_SPECIFICATION) == 0)
> +         appendPQExpBufferStr(&conn->errorMessage,
> +             libpq_gettext("password retrieved from .pgpass\n"));
>   

Surely we should use the name of the actual file from which the password 
was retrieved here, which could be quite different from ".pgpass" (see 
PGPASSFILE environment setting) and is different by default on Windows 
anyway. Using a hardcoded ".pgpass" in those situations could be quite 
confusing.

cheers

andrew


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Warning about invalid .pgpass passwords
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Dyamic updates of NEW with pl/pgsql