diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
index e700782d3c..a4ce99ba4d 100644
--- a/doc/src/sgml/config.sgml
+++ b/doc/src/sgml/config.sgml
@@ -7040,9 +7040,8 @@ local0.* /var/log/postgresql
The name will be displayed in the pg_stat_activity view
and included in CSV log entries. It can also be included in regular
log entries via the parameter.
- Only printable ASCII characters may be used in the
- application_name value. Other characters will be
- replaced with question marks (?).
+ Non-ASCII characters used in the application_name
+ will be replaced with hexadecimal strings.
@@ -8037,10 +8036,9 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
The name can be any string of less
than NAMEDATALEN characters (64 characters in a standard
- build). Only printable ASCII characters may be used in the
- cluster_name value. Other characters will be
- replaced with question marks (?). No name is shown
- if this parameter is set to the empty string '' (which is
+ build). Non-ASCII characters used in the cluster_name
+ will be replaced with hexadecimal strings. No name is shown if this
+ parameter is set to the empty string '' (which is
the default). This parameter can only be set at server start.
diff --git a/doc/src/sgml/postgres-fdw.sgml b/doc/src/sgml/postgres-fdw.sgml
index 5062d712e7..98785e87ea 100644
--- a/doc/src/sgml/postgres-fdw.sgml
+++ b/doc/src/sgml/postgres-fdw.sgml
@@ -1067,9 +1067,8 @@ postgres=# SELECT postgres_fdw_disconnect_all();
of any length and contain even non-ASCII characters. However when
it's passed to and used as application_name
in a foreign server, note that it will be truncated to less than
- NAMEDATALEN characters and anything other than
- printable ASCII characters will be replaced with question
- marks (?).
+ NAMEDATALEN characters and non-ASCII characters will be
+ replaced with hexadecimal strings.
See for details.