improve CREATE EXTENSION error message

Поиск
Список
Период
Сортировка
От Bossart, Nathan
Тема improve CREATE EXTENSION error message
Дата
Msg-id 3950D56A-4E47-48E7-BF9B-F5F22E268BE7@amazon.com
обсуждение исходный текст
Ответы Re: improve CREATE EXTENSION error message  (Daniel Gustafsson <daniel@yesql.se>)
Re: improve CREATE EXTENSION error message  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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?

Nathan


Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Lots of memory allocated when reassigning Large Objects
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: Lots of memory allocated when reassigning Large Objects