Skip to content

Commit 46e09bc

Browse files
maksm90akorotkov
authored andcommitted
Add support of PGv < 11
1 parent 62c9e81 commit 46e09bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

collector.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,11 @@ collector_main(Datum main_arg)
302302
pqsignal(SIGTERM, handle_sigterm);
303303
BackgroundWorkerUnblockSignals();
304304

305+
#if PG_VERSION_NUM >= 110000
305306
InitPostgres(NULL, InvalidOid, NULL, InvalidOid, NULL, false);
307+
#else
308+
InitPostgres(NULL, InvalidOid, NULL, InvalidOid, NULL);
309+
#endif
306310
SetProcessingMode(NormalProcessing);
307311

308312
/* Make pg_wait_sampling recognisable in pg_stat_activity */

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