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

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

+4
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)