Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 58e2e6e

Browse files
committed
doc: Add note about postgres_fdw.application_name.
postgres_fdw.application_name can be any string of any length and contain even non-ASCII characters. However when it's passed to and used as application_name in a foreign server, it's truncated to less than NAMEDATALEN characters and any characters other than printable ASCII ones in it will be replaced with question marks. This commit adds these notes into the docs. Author: Hayato Kuroda Reviewed-by: Kyotaro Horiguchi, Fujii Masao Discussion: https://postgr.es/m/TYCPR01MB5870D1E8B949DAF6D3B84E02F5F29@TYCPR01MB5870.jpnprd01.prod.outlook.com
1 parent a13db0e commit 58e2e6e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/src/sgml/postgres-fdw.sgml

+10
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,16 @@ postgres=# SELECT postgres_fdw_disconnect_all();
936936
Note that change of this parameter doesn't affect any existing
937937
connections until they are re-established.
938938
</para>
939+
<para>
940+
<varname>postgres_fdw.application_name</varname> can be any string
941+
of any length and contain even non-ASCII characters. However when
942+
it's passed to and used as <varname>application_name</varname>
943+
in a foreign server, note that it will be truncated to less than
944+
<symbol>NAMEDATALEN</symbol> characters and any characters other
945+
than printable ASCII ones in it will be replaced with question
946+
marks (<literal>?</literal>).
947+
See <xref linkend="guc-application-name"/> for details.
948+
</para>
939949
</listitem>
940950
</varlistentry>
941951
</variablelist>

0 commit comments

Comments
 (0)