Re: improve CREATE EXTENSION error message

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: improve CREATE EXTENSION error message
Дата
Msg-id C5E91D75-CCD8-47D3-A874-BDB82A88629E@yesql.se
обсуждение исходный текст
Ответ на improve CREATE EXTENSION error message  ("Bossart, Nathan" <bossartn@amazon.com>)
Ответы Re: improve CREATE EXTENSION error message  ("Bossart, Nathan" <bossartn@amazon.com>)
Список pgsql-hackers
> On 29 Nov 2021, at 20:54, Bossart, Nathan <bossartn@amazon.com> wrote:
>
> Hi hackers,
>
> Currently, if you attempt to use CREATE EXTENSION for an extension
> that is not installed, you'll see something like the following:
>
>        postgres=# CREATE EXTENSION does_not_exist;
>        ERROR:  could not open extension control file "/usr/local/pgsql/share/extension/does_not_exist.control": No
suchfile or directory 
>
> I suspect this ERROR message is confusing for novice users, so perhaps
> we should add a HINT.  With the attached patch, you'd see the
> following:
>
>        postgres=# CREATE EXTENSION does_not_exist;
>        ERROR:  could not open extension control file "/usr/local/pgsql/share/extension/does_not_exist.control": No
suchfile or directory 
>        HINT:  This typically indicates that the specified extension is not installed on the system.
>
> Thoughts?

I haven't given the suggested wording too much thought, but in general that
sounds like a good idea.

--
Daniel Gustafsson        https://vmware.com/




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

Предыдущее
От: Rémi Lapeyre
Дата:
Сообщение: Re: Commitfest 2021-11 Patch Triage - Part 2
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Correct handling of blank/commented lines in PSQL interactive-mode history