diff options
| author | Peter Eisentraut <peter@eisentraut.org> | 2022-04-08 07:41:09 +0200 |
|---|---|---|
| committer | Peter Eisentraut <peter@eisentraut.org> | 2022-04-08 07:41:55 +0200 |
| commit | 708007dced2b05ed9b4f1963e91b2eb67413bd19 (patch) | |
| tree | c09dc26fbbd73408cc8a231e6667216bf0165c32 /src/backend | |
| parent | b3abca68106d518ce5d3c0d9a1e0ec02a647ceda (diff) | |
| download | postgresql-708007dced2b05ed9b4f1963e91b2eb67413bd19.tar.gz | |
Remove error message hints mentioning configure options
These 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.
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/2552aed7-d0e9-280a-54aa-2dc7073f371d%40enterprisedb.com
Diffstat (limited to 'src/backend')
| -rw-r--r-- | src/backend/access/common/toast_compression.c | 3 | ||||
| -rw-r--r-- | src/backend/libpq/hba.c | 2 | ||||
| -rw-r--r-- | src/backend/utils/adt/pg_locale.c | 6 | ||||
| -rw-r--r-- | src/backend/utils/adt/xml.c | 3 |
4 files changed, 4 insertions, 10 deletions
diff --git a/src/backend/access/common/toast_compression.c b/src/backend/access/common/toast_compression.c index 8a81ff4c0c..f90f9f11e3 100644 --- a/src/backend/access/common/toast_compression.c +++ b/src/backend/access/common/toast_compression.c @@ -30,8 +30,7 @@ int default_toast_compression = TOAST_PGLZ_COMPRESSION; ereport(ERROR, \ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), \ errmsg("compression method lz4 not supported"), \ - errdetail("This functionality requires the server to be built with lz4 support."), \ - errhint("You need to rebuild PostgreSQL using %s.", "--with-lz4"))) + errdetail("This functionality requires the server to be built with lz4 support."))) /* * Compress a varlena using PGLZ. diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c index f8393ca8ed..cbd17b790d 100644 --- a/src/backend/libpq/hba.c +++ b/src/backend/libpq/hba.c @@ -1010,7 +1010,6 @@ parse_hba_line(TokenizedAuthLine *tok_line, int elevel) ereport(elevel, (errcode(ERRCODE_CONFIG_FILE_ERROR), errmsg("hostssl record cannot match because SSL is not supported by this build"), - errhint("Compile with --with-ssl to use SSL connections."), errcontext("line %d of configuration file \"%s\"", line_num, HbaFileName))); *err_msg = "hostssl record cannot match because SSL is not supported by this build"; @@ -1023,7 +1022,6 @@ parse_hba_line(TokenizedAuthLine *tok_line, int elevel) ereport(elevel, (errcode(ERRCODE_CONFIG_FILE_ERROR), errmsg("hostgssenc record cannot match because GSSAPI is not supported by this build"), - errhint("Compile with --with-gssapi to use GSSAPI connections."), errcontext("line %d of configuration file \"%s\"", line_num, HbaFileName))); *err_msg = "hostgssenc record cannot match because GSSAPI is not supported by this build"; diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c index c84fdd8525..12603b727c 100644 --- a/src/backend/utils/adt/pg_locale.c +++ b/src/backend/utils/adt/pg_locale.c @@ -1462,8 +1462,7 @@ make_icu_collator(const char *iculocstr, /* could get here if a collation was created by a build with ICU */ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("ICU is not supported in this build"), \ - errhint("You need to rebuild PostgreSQL using %s.", "--with-icu"))); + errmsg("ICU is not supported in this build"))); #endif /* not USE_ICU */ } @@ -2008,8 +2007,7 @@ check_icu_locale(const char *icu_locale) #else ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("ICU is not supported in this build"), \ - errhint("You need to rebuild PostgreSQL using %s.", "--with-icu"))); + errmsg("ICU is not supported in this build"))); #endif } diff --git a/src/backend/utils/adt/xml.c b/src/backend/utils/adt/xml.c index 801ad8fa4e..1ec6f1c2fd 100644 --- a/src/backend/utils/adt/xml.c +++ b/src/backend/utils/adt/xml.c @@ -220,8 +220,7 @@ const TableFuncRoutine XmlTableRoutine = ereport(ERROR, \ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), \ errmsg("unsupported XML feature"), \ - errdetail("This functionality requires the server to be built with libxml support."), \ - errhint("You need to rebuild PostgreSQL using %s.", "--with-libxml"))) + errdetail("This functionality requires the server to be built with libxml support."))) /* from SQL/XML:2008 section 4.9 */ |
