From 94c49d53402240ad7ddbcae9049ff2840a54b9c6 Mon Sep 17 00:00:00 2001
From: Fujii Masao
Date: Fri, 18 Feb 2022 11:38:12 +0900
Subject: postgres_fdw: Make postgres_fdw.application_name support more escape
sequences.
Commit 6e0cb3dec1 allowed postgres_fdw.application_name to include
escape sequences %a (application name), %d (database name), %u (user name)
and %p (pid). In addition to them, this commit makes it support
the escape sequences for session ID (%c) and cluster name (%C).
These are helpful to investigate where each remote transactions came from.
Author: Fujii Masao
Reviewed-by: Ryohei Takahashi, Kyotaro Horiguchi
Discussion: https://postgr.es/m/1041dc9a-c976-049f-9f14-e7d94c29c4b2@oss.nttdata.com
---
doc/src/sgml/postgres-fdw.sgml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
(limited to 'doc/src/sgml/postgres-fdw.sgml')
diff --git a/doc/src/sgml/postgres-fdw.sgml b/doc/src/sgml/postgres-fdw.sgml
index 7bb6e525a46..dc57fe4b0d1 100644
--- a/doc/src/sgml/postgres-fdw.sgml
+++ b/doc/src/sgml/postgres-fdw.sgml
@@ -984,6 +984,20 @@ postgres=# SELECT postgres_fdw_disconnect_all();
%a
Application name on local server
+
+ %c
+
+ Session ID on local server
+ (see for details)
+
+
+
+ %C
+
+ Cluster name in local server
+ (see for details)
+
+
%u
User name on local server
--
cgit v1.2.3