diff options
author | Michael Paquier <michael@paquier.xyz> | 2020-01-21 13:47:01 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2020-01-21 13:47:01 +0900 |
commit | 7c7026bb7aa57663766ee28e7b18c394d3b6d7fb (patch) | |
tree | 2bd8968113649f27b0fbf55dd79c96722f1b6584 | |
parent | 4ea5cf403824e98932aa17c1c00f9c5241daf89d (diff) | |
download | postgresql-7c7026bb7aa57663766ee28e7b18c394d3b6d7fb.tar.gz postgresql-7c7026bb7aa57663766ee28e7b18c394d3b6d7fb.zip |
Add GUC variables for stat tracking and timeout as PGDLLIMPORT
This helps integration of extensions with Windows. The following
parameters are changed:
- idle_in_transaction_session_timeout (9.6 and newer versions)
- lock_timeout
- statement_timeout
- track_activities
- track_counts
- track_functions
Author: Pascal Legrand
Reviewed-by: Amit Kamila, Julien Rouhaud, Michael Paquier
Discussion: https://postgr.es/m/1579298868581-0.post@n3.nabble.com
Backpatch-through: 9.4
-rw-r--r-- | src/include/pgstat.h | 6 | ||||
-rw-r--r-- | src/include/storage/proc.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h index 682b088eda9..58e2e71c6fd 100644 --- a/src/include/pgstat.h +++ b/src/include/pgstat.h @@ -1163,9 +1163,9 @@ typedef struct PgStat_FunctionCallUsage * GUC parameters * ---------- */ -extern bool pgstat_track_activities; -extern bool pgstat_track_counts; -extern int pgstat_track_functions; +extern PGDLLIMPORT bool pgstat_track_activities; +extern PGDLLIMPORT bool pgstat_track_counts; +extern PGDLLIMPORT int pgstat_track_functions; extern PGDLLIMPORT int pgstat_track_activity_query_size; extern char *pgstat_stat_directory; extern char *pgstat_stat_tmpname; diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index cb613c8076e..95c9592b211 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -291,9 +291,9 @@ extern PGPROC *PreparedXactProcs; /* configurable options */ extern PGDLLIMPORT int DeadlockTimeout; -extern int StatementTimeout; -extern int LockTimeout; -extern int IdleInTransactionSessionTimeout; +extern PGDLLIMPORT int StatementTimeout; +extern PGDLLIMPORT int LockTimeout; +extern PGDLLIMPORT int IdleInTransactionSessionTimeout; extern bool log_lock_waits; |