Skip to content

Commit 950e236

Browse files
committed
doc: Fix descriptions related to the handling of non-ASCII characters
Since 45b1a67, non-printable ASCII characters do not show up in various configuration paths as question marks, but as hexadecimal escapes. The documentation was not updated to reflect that. Author: Hayato Kuroda Reviewed-by: Jian He, Tom Lane, Karl O. Pinc, Peter Smith Discussion: https://postgr.es/m/TYAPR01MB586631D0961BF9C44893FAB1F523A@TYAPR01MB5866.jpnprd01.prod.outlook.com Backpatch-through: 16
1 parent 3fa81b6 commit 950e236

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

doc/src/sgml/config.sgml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7012,8 +7012,9 @@ local0.* /var/log/postgresql
70127012
and included in CSV log entries. It can also be included in regular
70137013
log entries via the <xref linkend="guc-log-line-prefix"/> parameter.
70147014
Only printable ASCII characters may be used in the
7015-
<varname>application_name</varname> value. Other characters will be
7016-
replaced with question marks (<literal>?</literal>).
7015+
<varname>application_name</varname> value.
7016+
Other characters are replaced with <link
7017+
linkend="sql-syntax-strings-escape">C-style hexadecimal escapes</link>.
70177018
</para>
70187019
</listitem>
70197020
</varlistentry>
@@ -8009,10 +8010,12 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
80098010
The name can be any string of less
80108011
than <symbol>NAMEDATALEN</symbol> characters (64 characters in a standard
80118012
build). Only printable ASCII characters may be used in the
8012-
<varname>cluster_name</varname> value. Other characters will be
8013-
replaced with question marks (<literal>?</literal>). No name is shown
8014-
if this parameter is set to the empty string <literal>''</literal> (which is
8015-
the default). This parameter can only be set at server start.
8013+
<varname>cluster_name</varname> value.
8014+
Other characters are replaced with <link
8015+
linkend="sql-syntax-strings-escape">C-style hexadecimal escapes</link>.
8016+
No name is shown if this parameter is set to the empty string
8017+
<literal>''</literal> (which is the default).
8018+
This parameter can only be set at server start.
80168019
</para>
80178020
</listitem>
80188021
</varlistentry>

doc/src/sgml/postgres-fdw.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,9 +1067,9 @@ postgres=# SELECT postgres_fdw_disconnect_all();
10671067
of any length and contain even non-ASCII characters. However when
10681068
it's passed to and used as <varname>application_name</varname>
10691069
in a foreign server, note that it will be truncated to less than
1070-
<symbol>NAMEDATALEN</symbol> characters and anything other than
1071-
printable ASCII characters will be replaced with question
1072-
marks (<literal>?</literal>).
1070+
<symbol>NAMEDATALEN</symbol> characters.
1071+
Anything other than printable ASCII characters are replaced with <link
1072+
linkend="sql-syntax-strings-escape">C-style hexadecimal escapes</link>.
10731073
See <xref linkend="guc-application-name"/> for details.
10741074
</para>
10751075

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy