Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df1aa39

Browse files
author
i.kartyshov
committed
[refer #PGPRO-6612] Count max procs
tags: pg_wait_sampling
1 parent af53205 commit df1aa39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pg_wait_sampling.c

+4
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ get_max_procs_count(void)
114114
count += MaxConnections + autovacuum_max_workers + 1
115115
+ max_worker_processes;
116116

117+
#if PG_VERSION_NUM >= 140000 && defined(PGPRO_EE)
118+
count += MaxATX;
119+
#endif
120+
117121
/*
118122
* Starting with pg12, wal senders aren't part of MaxConnections anymore
119123
* and have to be accounted for.

0 commit comments

Comments
 (0)