Re: BUG #15025: PSQL CLI - inconsistency when both -d and -U supplies a username

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #15025: PSQL CLI - inconsistency when both -d and -U supplies a username
Дата
Msg-id 4169.1517248869@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #15025: PSQL CLI - inconsistency when both -d and -U supplies a username  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
I wrote:
> So I now think the comment I added to do_connect() is unduly pessimistic,
> and it's fine to keep using "prompt_for_password(user)" for a forced
> password prompt there.  There may still be use-cases where it gets it
> wrong, but they're too narrow to be worth giving up the helpful prompt
> altogether.

After further thought about that I changed my mind again: it seems better
to be able to say "we never issue a misleading password prompt" than that
"it's right 99% of the time" --- and it looks like in some cases with
nondefault reuse_previous_specification, we'd still get it wrong.  So
I made it shorten the prompt if the dbname is a connstring or URI.
Committed with that change.

            regards, tom lane


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

Предыдущее
От: Mauricio Alejandro De León Cárdenas
Дата:
Сообщение: Database creation taking too long
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop