Remove error message hints mentioning configure options

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Remove error message hints mentioning configure options
Date: 2022-04-07 07:19:14
Message-ID: 2552aed7-d0e9-280a-54aa-2dc7073f371d@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

We have some error messages like this:

SELECT xml_is_well_formed('<abc/>');
ERROR: unsupported XML feature
DETAIL: This functionality requires the server to be built with libxml
support.
HINT: You need to rebuild PostgreSQL using --with-libxml.

This patch removes these kinds of hints.

I think these hints are usually not useful since users will use packaged
distributions and won't be interested in rebuilding their installation
from source. Also, we have only used these kinds of hints for some
features and in some places, not consistently throughout. And of course
there are build systems that don't use configure. The information
"needs to be built with XXX" or "was not built with XXX" should be
enough for those interested in actually changing their build
configuration to figure out what to do.

Attachment Content-Type Size
0001-Remove-error-message-hints-mentioning-configure-opti.patch text/plain 64.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gunnar "Nick" Bluth 2022-04-07 07:20:39 Re: [PATCH] pg_stat_toast
Previous Message Julien Rouhaud 2022-04-07 07:14:01 Re: Showing I/O timings spent reading/writing temp buffers in EXPLAIN