Improve error message for missing extension.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Jan 2022 19:22:00 +0000 (14:22 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Jan 2022 19:22:00 +0000 (14:22 -0500)
commit6f6943fc94ada145c0af5f62f719abad73825e5b
treecfbbfcaaecebbff387c8bd5812081a955e3f589d
parent98e93a1fc93e9b54eb477d870ec744e9e1669f34
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
src/backend/commands/extension.c