Re: Adding error messages to a few slash commands

Поиск
Список
Период
Сортировка
От Dean Rasheed
Тема Re: Adding error messages to a few slash commands
Дата
Msg-id CAEZATCW7k3GO8w3NBaZFHoKBE8oiC_7ryG-Eayi5EAy9pOAxoQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Adding error messages to a few slash commands  (Abhishek Chanda <abhishek.becs@gmail.com>)
Список pgsql-hackers
On Sun, 13 Apr 2025 at 17:40, Abhishek Chanda <abhishek.becs@gmail.com> wrote:
>
> Thanks for the feedback, attached an updated patch that changes most
> of those "Did not find" messages to empty tables. I did not change two
> sets, listDbRoleSettings and listTables both have comments describing
> that these are deliberately this way.
>

+1 for always displaying an empty table if no objects are found.

The reason given for listDbRoleSettings() being an exception could be
solved by making the title depend on the number of arguments, e.g.,
"List of settings for role \"%s\" and database \"%s\".".

It's not clear what the "historical reasons" are for listTables()
being an exception, but if we're changing any of these, I'd say we
should make them all consistent.

Regards,
Dean



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