Re: Allow escape in application_name
Kyotaro Horiguchi <horikyota.ntt@gmail.com>
From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: kuroda.hayato@fujitsu.com
Cc: masao.fujii@oss.nttdata.com, houzj.fnst@fujitsu.com,
ikedamsh@oss.nttdata.com, pgsql-hackers@lists.postgresql.org,
tgl@sss.pgh.pa.us
Date: 2021-10-01T07:40:36Z
Lists: pgsql-hackers
At Fri, 01 Oct 2021 11:23:33 +0900 (JST), Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote in > function but that is apparently too-much complex. (It would be worth > doing if we share the same backbone processing with archive_command, > restore_command, recover_end_command and so on, but that is > necessarily accompanied by the need to change the behavior either > log_line_prefix or others.) So I was daydreaming over the idea and concluded as it is no-go. I said that the fdw-application name is close to archive_command rather than log_line_prefix, but that is totally missing the point. log_line_prefix and the fdw-application name share the concept of formatting, which is not a part of archive_command and friends. The latter is made very light weight and simple due to not only the formatless-ness but also the narrow choices of escape characters. Also they work on fixed-length buffer instead of StringInfo. regards. -- Kyotaro Horiguchi NTT Open Source Software Center
Commits
-
postgres_fdw: Add regression test for postgres_fdw.application_name GUC.
- 353aa01687b5 15.0 landed
-
postgres_fdw: Allow postgres_fdw.application_name to include escape sequences.
- 6e0cb3dec10e 15.0 landed
-
doc: Add note about postgres_fdw.application_name.
- 58e2e6eb67fe 15.0 landed
-
postgres_fdw: Revert unstable tests for postgres_fdw.application_name.
- 98dbef90eb29 15.0 landed
-
postgres_fdw: Allow application_name of remote connection to be set via GUC.
- 449ab6350526 15.0 landed