diff options
| author | Fujii Masao | 2022-02-18 02:38:12 +0000 |
|---|---|---|
| committer | Fujii Masao | 2022-02-18 02:38:12 +0000 |
| commit | 94c49d53402240ad7ddbcae9049ff2840a54b9c6 (patch) | |
| tree | bff534c8386626a4278a2dd9ac743ae3a50dc351 /src/include/utils | |
| parent | c476f380e296bab57fecada1ea96c86d575bf160 (diff) | |
postgres_fdw: Make postgres_fdw.application_name support more escape sequences.
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, this commit makes it support
the escape sequences for session ID (%c) and cluster name (%C).
These are helpful to investigate where each remote transactions came from.
Author: Fujii Masao
Reviewed-by: Ryohei Takahashi, Kyotaro Horiguchi
Discussion: https://postgr.es/m/1041dc9a-c976-049f-9f14-e7d94c29c4b2@oss.nttdata.com
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/guc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h index 6bb81707b09..f1bfe79feb8 100644 --- a/src/include/utils/guc.h +++ b/src/include/utils/guc.h @@ -271,7 +271,7 @@ extern int temp_file_limit; extern int num_temp_buffers; -extern char *cluster_name; +extern PGDLLIMPORT char *cluster_name; extern PGDLLIMPORT char *ConfigFileName; extern char *HbaFileName; extern char *IdentFileName; |
