Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit46e09bc

Browse files
maksm90akorotkov
authored andcommitted
Add support of PGv < 11
1 parent62c9e81 commit46e09bc

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+
#ifPG_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)

[8]ページ先頭

©2009-2025 Movatter.jp