]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Add GUC variables for stat tracking and timeout as PGDLLIMPORT
authorMichael Paquier <michael@paquier.xyz>
Tue, 21 Jan 2020 04:47:13 +0000 (13:47 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 21 Jan 2020 04:47:13 +0000 (13:47 +0900)
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

src/include/pgstat.h
src/include/storage/proc.h

index b020c81ac1d34cd88fa7f45e9697e27ecf0e57ac..73d786be6c4019223710d001408f9045c85f21fb 100644 (file)
@@ -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;
index 8b7dc728387345f24e0b525775f20289492838b0..ff30832caeae3a107847b5c57f9388c1596d43dd 100644 (file)
@@ -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;