| From: | "Bossart, Nathan" <bossartn(at)amazon(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Daniel Gustafsson <daniel(at)yesql(dot)se>, Chapman Flack <chap(at)anastigmatix(dot)net>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: improve CREATE EXTENSION error message |
| Date: | 2021-11-29 22:54:50 |
| Message-ID: | 81FFA989-EA91-455A-A401-2C99DCED9704@amazon.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 11/29/21, 2:43 PM, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "Bossart, Nathan" <bossartn(at)amazon(dot)com> writes:
>> 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 don't think that HINT is useful at all, and I agree with Chapman
> that we should still show the filename we tried to look up,
> just in case there's a path problem or the like.
Okay, I removed the part about pg_available_extensions and now the
message looks like this:
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.
Nathan
| Attachment | Content-Type | Size |
|---|---|---|
| v4-0001-Improve-CREATE-EXTENSION-error-message.patch | application/octet-stream | 1.4 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2021-11-29 23:16:57 | Re: SSL Tests for sslinfo extension |
| Previous Message | Tom Lane | 2021-11-29 22:50:36 | Re: SSL Tests for sslinfo extension |