Improved error message for CREATE EXTENSION patch... - Mailing list pgsql-hackers

From Sean Chittenden
Subject Improved error message for CREATE EXTENSION patch...
Date
Msg-id B67E0B4C-EFA0-4D7B-B465-6CB4A956241E@chittenden.org
Whole thread Raw
Responses Re: Improved error message for CREATE EXTENSION patch...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I ran in to the following situation:

> SET search_path = ENOENT, also_does_not_exist;
> CREATE EXTENSION pg_repack;
> ERROR:  XX000: there is no default creation target
> LOCATION:  CreateExtension, extension.c:1395

Which left me checking out the source code to figure out exactly what the problem was. Attached is an improved error
message:

> "ERROR:  XX000: no schemas in search_path are available for CREATE EXTENSION"

-sc



--
Sean Chittenden
sean@chittenden.org


Attachment

pgsql-hackers by date:

Previous
From: Mark Salter
Date:
Subject: Re: [PATCH] Add support for TAS/S_UNLOCK for aarch64
Next
From: Oliver Charles
Date:
Subject: Re: Configurable location for extension .control files