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

From Bossart, Nathan
Subject Re: improve CREATE EXTENSION error message
Date
Msg-id 1003AC46-48C0-4322-9499-3D01000304A3@amazon.com
Whole thread Raw
In response to Re: improve CREATE EXTENSION error message  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 11/29/21, 1:03 PM, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
> If we issue the hint only for errno == ENOENT, I think we could be
> less wishy-washy (and if it's not ENOENT, the hint is likely
> inappropriate anyway).  I'm thinking something more like
>
> HINT:  This means the extension is not installed on the system.

Good idea.

> I'm not quite satisfied with the "on the system" wording, but I'm
> not sure of what would be better.  I agree that we can't just say
> "is not installed", because people will confuse that with whether
> it is installed within the database.

Right.  The only other idea I have at the moment is to say something
like

        This means the extension is not available[ on the system].

I don't know whether that is actually any less confusing, though.

Nathan


pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: improve CREATE EXTENSION error message
Next
From: Guillaume Lelarge
Date:
Subject: Re: Lots of memory allocated when reassigning Large Objects