Skip to content

Commit 62c9b52

Browse files
committed
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
1 parent 31f403e commit 62c9b52

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/include/pgstat.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,9 +1210,9 @@ typedef struct PgStat_FunctionCallUsage
12101210
* GUC parameters
12111211
* ----------
12121212
*/
1213-
extern bool pgstat_track_activities;
1214-
extern bool pgstat_track_counts;
1215-
extern int pgstat_track_functions;
1213+
extern PGDLLIMPORT bool pgstat_track_activities;
1214+
extern PGDLLIMPORT bool pgstat_track_counts;
1215+
extern PGDLLIMPORT int pgstat_track_functions;
12161216
extern PGDLLIMPORT int pgstat_track_activity_query_size;
12171217
extern char *pgstat_stat_directory;
12181218
extern char *pgstat_stat_tmpname;

src/include/storage/proc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ extern PGPROC *PreparedXactProcs;
293293

294294
/* configurable options */
295295
extern PGDLLIMPORT int DeadlockTimeout;
296-
extern int StatementTimeout;
297-
extern int LockTimeout;
298-
extern int IdleInTransactionSessionTimeout;
296+
extern PGDLLIMPORT int StatementTimeout;
297+
extern PGDLLIMPORT int LockTimeout;
298+
extern PGDLLIMPORT int IdleInTransactionSessionTimeout;
299299
extern bool log_lock_waits;
300300

301301

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy