Re: improve CREATE EXTENSION error message

Поиск
Список
Период
Сортировка
От Bossart, Nathan
Тема Re: improve CREATE EXTENSION error message
Дата
Msg-id 4C99C463-E3C9-4816-AD34-F5DAB8BED54F@amazon.com
обсуждение исходный текст
Ответ на Re: improve CREATE EXTENSION error message  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: improve CREATE EXTENSION error message  ("Bossart, Nathan" <bossartn@amazon.com>)
Re: improve CREATE EXTENSION error message  (Chapman Flack <chap@anastigmatix.net>)
Re: improve CREATE EXTENSION error message  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 11/29/21, 2:04 PM, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
> I think "The extension must ..." would read better, otherwise +1.
>
> I don't especially like intertwining the hint choice with the existing
> special case for per-version files.  Our usual style for conditional
> hints can be found in places like sysv_shmem.c, and following that
> would lead to a patch roughly like

Alright, here's v3.  In this version, I actually removed the message
about the control file entirely, so now the error message looks like
this:

        postgres=# CREATE EXTENSION does_not_exist;
        ERROR:  extension "does_not_exist" is not available
        DETAIL:  The extension must first be installed on the system where PostgreSQL is running.
        HINT:  The pg_available_extensions view lists the extensions that are available for installation.

I can add the control file part back if we think it's necessary.

Nathan


Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: improve CREATE EXTENSION error message
Следующее
От: "Bossart, Nathan"
Дата:
Сообщение: Re: improve CREATE EXTENSION error message