Re: BUG #17789: process_pgfdw_appname() fails for autovacuum workers

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: sawada.mshk@gmail.com, exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2023-02-20T23:43:06Z
Lists: pgsql-bugs

Attachments

On Mon, Feb 20, 2023 at 04:59:25PM +0900, Michael Paquier wrote:
> This has the advantage to be able to make the difference in both
> cases, which could be important for the end-user depending on the
> context where the code is run.

In short, as of the attached, which is pretty close to the original
patch.
--
Michael

Commits

  1. Fix handling of escape sequences in postgres_fdw.application_name

  2. postgres_fdw: Allow postgres_fdw.application_name to include escape sequences.