Skip to content

Commit dbe405b

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 42e538f commit dbe405b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/include/pgstat.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -808,9 +808,9 @@ typedef struct PgStat_FunctionCallUsage
808808
* GUC parameters
809809
* ----------
810810
*/
811-
extern bool pgstat_track_activities;
812-
extern bool pgstat_track_counts;
813-
extern int pgstat_track_functions;
811+
extern PGDLLIMPORT bool pgstat_track_activities;
812+
extern PGDLLIMPORT bool pgstat_track_counts;
813+
extern PGDLLIMPORT int pgstat_track_functions;
814814
extern PGDLLIMPORT int pgstat_track_activity_query_size;
815815
extern char *pgstat_stat_directory;
816816
extern char *pgstat_stat_tmpname;

src/include/storage/proc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ extern PGPROC *PreparedXactProcs;
224224

225225
/* configurable options */
226226
extern PGDLLIMPORT int DeadlockTimeout;
227-
extern int StatementTimeout;
228-
extern int LockTimeout;
227+
extern PGDLLIMPORT int StatementTimeout;
228+
extern PGDLLIMPORT int LockTimeout;
229229
extern bool log_lock_waits;
230230

231231

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