| From: | Sean Chittenden <sean(at)chittenden(dot)org> |
|---|---|
| To: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Improved error message for CREATE EXTENSION patch... |
| Date: | 2013-06-04 18:12:30 |
| Message-ID: | B67E0B4C-EFA0-4D7B-B465-6CB4A956241E@chittenden.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| Attachment | Content-Type | Size |
|---|---|---|
| src-backend-commands-extension.c.patch | application/octet-stream | 913 bytes |
| unknown_filename | text/plain | 42 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Oliver Charles | 2013-06-04 18:22:47 | Re: Configurable location for extension .control files |
| Previous Message | Mark Salter | 2013-06-04 18:05:55 | Re: [PATCH] Add support for TAS/S_UNLOCK for aarch64 |