Re: improve CREATE EXTENSION error message

Поиск
Список
Период
Сортировка
От Chapman Flack
Тема Re: improve CREATE EXTENSION error message
Дата
Msg-id 61A56641.8060207@anastigmatix.net
обсуждение исходный текст
Ответ на Re: improve CREATE EXTENSION error message  ("Bossart, Nathan" <bossartn@amazon.com>)
Ответы Re: improve CREATE EXTENSION error message  ("Bossart, Nathan" <bossartn@amazon.com>)
Список pgsql-hackers
On 11/29/21 17:54, Bossart, Nathan wrote:

>         postgres=# CREATE EXTENSION does_not_exist;
>         ERROR:  extension "does_not_exist" is not available
>         DETAIL:  Extension control file "/usr/local/pgsql/share/extension/does_not_exist.control" does not exist.
>         HINT:  The extension must first be installed on the system where PostgreSQL is running.

That looks like the direction I would have gone with it.

I wonder, though, is it better to write "does not exist." in the message,
or to use %m and get the exact message from the OS (which presumably would
be "No such file or directory" on Unix, and whatever Windows says for such
things on Windows).

My leaning is generally to use %m and therefore the exact OS message
in the detail, but I don't claim to speak for the project style on that.

Regards,
-Chap



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

Предыдущее
От: Greg Nancarrow
Дата:
Сообщение: Re: Correct handling of blank/commented lines in PSQL interactive-mode history
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Correct handling of blank/commented lines in PSQL interactive-mode history