Re: Allow escape in application_name
Fujii Masao <masao.fujii@oss.nttdata.com>
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: "kuroda.hayato@fujitsu.com" <kuroda.hayato@fujitsu.com>,
'Kyotaro Horiguchi' <horikyota.ntt@gmail.com>
Cc: "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>,
"ikedamsh@oss.nttdata.com" <ikedamsh@oss.nttdata.com>,
"pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>,
"tgl@sss.pgh.pa.us" <tgl@sss.pgh.pa.us>
Date: 2021-10-12T04:25:01Z
Lists: pgsql-hackers
On 2021/10/07 11:46, kuroda.hayato@fujitsu.com wrote: > So now we can choose from followings: > > * ignore such differences and use isdigit() and strtol() > * give up using them and implement two static support functions > > How do you think? Someone knows any other knowledge about locale? Replacing process_log_prefix_padding() with isdigit()+strtol() is just refactoring and doesn't provide any new feature. So they basically should work in the same way. If the behavior of isdigit()+strtol() can be different from process_log_prefix_padding(), I'd prefer to the latter option you suggested, i.e., give up using isdigit()+strtol(). OTOH, of course if the behaviors of them are the same, I'm ok to use isdigit()+strtol(), though. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION
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