From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Improve error message for missing extension. |
Date: | 2022-01-11 19:22:07 |
Message-ID: | E1n7Mid-0003gc-2t@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Improve error message for missing extension.
If we get ENOENT while trying to read an extension control file,
report that as a missing extension (with a HINT to install it)
rather than as a filesystem access problem. The message wording
was extensively bikeshedded in hopes of pointing people to the
idea that they need to do a software installation before they
can install the extension into the current database.
Nathan Bossart, with review/wording suggestions from Daniel
Gustafsson, Chapman Flack, and myself
Discussion: https://postgr.es/m/3950D56A-4E47-48E7-BF9B-F5F22E268BE7@amazon.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6f6943fc94ada145c0af5f62f719abad73825e5b
Modified Files
--------------
src/backend/commands/extension.c | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2022-01-11 19:35:56 | Re: pgsql: Check for STATUS_DELETE_PENDING on Windows. |
Previous Message | Tom Lane | 2022-01-11 18:46:42 | pgsql: Clean up messy API for src/port/thread.c. |