Re: improve CREATE EXTENSION error message - Mailing list pgsql-hackers

From Bossart, Nathan
Subject Re: improve CREATE EXTENSION error message
Date
Msg-id 2D9094F2-BA62-4DCE-A357-9433B7AAA225@amazon.com
Whole thread Raw
In response to Re: improve CREATE EXTENSION error message  (Chapman Flack <chap@anastigmatix.net>)
Responses Re: improve CREATE EXTENSION error message
List pgsql-hackers
On 11/29/21, 3:47 PM, "Chapman Flack" <chap@anastigmatix.net> wrote:
> 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.

Okay, the message looks like this in v5:

        postgres=# CREATE EXTENSION does_not_exist;
        ERROR:  extension "does_not_exist" is not available
        DETAIL:  Could not open extension control file "/usr/local/pgsql/share/extension/does_not_exist.control": No
suchfile or directory.
 
        HINT:  The extension must first be installed on the system where PostgreSQL is running.

Nathan


Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Correct handling of blank/commented lines in PSQL interactive-mode history
Next
From: Andy Fan
Date:
Subject: Re: Can I assume relation would not be invalid during from ExecutorRun to ExecutorEnd