summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-01-21 13:47:10 +0900
committerMichael Paquier <michael@paquier.xyz>2020-01-21 13:47:10 +0900
commit9740cdbe5e35c57abba1d3cfe082d8dd35118ca5 (patch)
tree017f20c53ecd4c7eedda80ddc16a5a427e172326 /src
parent208e262f9246df9050aee63a933bb8b7fe265163 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/include/pgstat.h6
-rw-r--r--src/include/storage/proc.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h
index d689b527197..050ad269e50 100644
--- a/src/include/pgstat.h
+++ b/src/include/pgstat.h
@@ -951,9 +951,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 e359994aebd..239ed023958 100644
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -258,9 +258,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;