aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-01-21 13:47:13 +0900
committerMichael Paquier <michael@paquier.xyz>2020-01-21 13:47:13 +0900
commit4a49149b9d74d2f9479cb73227e9646c901c84e6 (patch)
tree8c3d04e23e51cb3a2d073981d728852396c69ffa
parentb1392a9502016fcd3c93ba18ab418e11424b711e (diff)
downloadpostgresql-4a49149b9d74d2f9479cb73227e9646c901c84e6.tar.gz
postgresql-4a49149b9d74d2f9479cb73227e9646c901c84e6.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.h6
-rw-r--r--src/include/storage/proc.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h
index b020c81ac1d..73d786be6c4 100644
--- a/src/include/pgstat.h
+++ b/src/include/pgstat.h
@@ -913,9 +913,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 8b7dc728387..ff30832caea 100644
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -225,8 +225,8 @@ extern PGPROC *PreparedXactProcs;
/* configurable options */
extern PGDLLIMPORT int DeadlockTimeout;
-extern int StatementTimeout;
-extern int LockTimeout;
+extern PGDLLIMPORT int StatementTimeout;
+extern PGDLLIMPORT int LockTimeout;
extern bool log_lock_waits;