Dear Fujii-san, I attached new version, that almost all codes moved from libpq to postgres_fdw.
Now we can accept four types of escapes. All escapes will be rewritten to connection souce's information: * application_name, * user name, * database name, and * backend's pid. These are cannot be set by log_line_prefix, so I think it is useful. We can use escape sequences in two ways: * Sets postgres_fdw.application_name GUC paramter, or * Sets application_name option in CREATE SERVER command. Which version do you like? Best Regards, Hayato Kuroda FUJITSU LIMITED
v04_0002_add_guc.patch
Description: v04_0002_add_guc.patch
v04_0001_move_process_padding.patch
Description: v04_0001_move_process_padding.patch