Support escape sequence for cluster_name in postgres_fdw.application_name

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Support escape sequence for cluster_name in postgres_fdw.application_name
Date: 2022-01-25 07:02:39
Message-ID: 1041dc9a-c976-049f-9f14-e7d94c29c4b2@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

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, I'd like to support the escape sequence (e.g., %C) for cluster name there. This escape sequence is helpful to investigate where each remote transactions came from. Thought?

Patch attached.

Regards,

--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

Attachment Content-Type Size
pgfdw_appname_cluster_name_v1.patch text/plain 1.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2022-01-25 07:03:07 Re: Fix BUG #17335: Duplicate result rows in Gather node
Previous Message Fujii Masao 2022-01-25 06:55:49 Re: CREATEROLE and role ownership hierarchies