From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: postgres_fdw: Make postgres_fdw.application_name support more es
Date: Fri, 18 Feb 2022 02:39:16 +0000
Message-ID: <E1nKtAy-0001rN-Eb@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/94c49d53402240ad7ddbcae9049ff2840a54b9c6
Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out | 20 ++++++++++++++++++++
contrib/postgres_fdw/option.c | 6 ++++++
contrib/postgres_fdw/sql/postgres_fdw.sql | 11 +++++++++++
doc/src/sgml/postgres-fdw.sgml | 14 ++++++++++++++
src/include/utils/guc.h | 2 +-
5 files changed, 52 insertions(+), 1 deletion(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: fujii@postgresql.org
Subject: Re: pgsql: postgres_fdw: Make postgres_fdw.application_name support more es
In-Reply-To: <E1nKtAy-0001rN-Eb@gemulon.postgresql.org>
References: <E1nKtAy-0001rN-Eb@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox