git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 31f403e)
Add GUC variables for stat tracking and timeout as PGDLLIMPORT
2020年1月21日 04:46:39 +0000 (13:46 +0900)
2020年1月21日 04:46:39 +0000 (13:46 +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


diff --git a/src/include/pgstat.h b/src/include/pgstat.h
index 36b530bc27f19c1e3c68e2977407ae3d805161b9..aecb6013f00d2287447d3cb3673f29efa79a3f7c 100644 (file)
--- a/src/include/pgstat.h
+++ b/src/include/pgstat.h
@@ -1210,9 +1210,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 5b407e6ac56cdf0c9e0d6204165364738d4d76c7..d21780108bbd60713baa1fda3dbc4015169f5b3d 100644 (file)
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -293,9 +293,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;
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /