Skip to content

Commit 1ef7332

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 6f6daa1 commit 1ef7332

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
@@ -1140,9 +1140,9 @@ typedef struct PgStat_FunctionCallUsage
11401140
* GUC parameters
11411141
* ----------
11421142
*/
1143-
extern bool pgstat_track_activities;
1144-
extern bool pgstat_track_counts;
1145-
extern int pgstat_track_functions;
1143+
extern PGDLLIMPORT bool pgstat_track_activities;
1144+
extern PGDLLIMPORT bool pgstat_track_counts;
1145+
extern PGDLLIMPORT int pgstat_track_functions;
11461146
extern PGDLLIMPORT int pgstat_track_activity_query_size;
11471147
extern char *pgstat_stat_directory;
11481148
extern char *pgstat_stat_tmpname;

src/include/storage/proc.h

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

275275
/* configurable options */
276276
extern PGDLLIMPORT int DeadlockTimeout;
277-
extern int StatementTimeout;
278-
extern int LockTimeout;
279-
extern int IdleInTransactionSessionTimeout;
277+
extern PGDLLIMPORT int StatementTimeout;
278+
extern PGDLLIMPORT int LockTimeout;
279+
extern PGDLLIMPORT int IdleInTransactionSessionTimeout;
280280
extern bool log_lock_waits;
281281

282282

0 commit comments

Comments
 (0)