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

Commit56546f0

Browse files
authored
Merge pull request#91 from RekGRpth/patch-2
Fix compatibility with pg18Upstream commitpostgres/postgres@525392d changed return type of ExecutorStart_hook API from void to bool.
2 parentsfbf8346 +637679b commit56546f0

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

‎pg_wait_sampling.c

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,13 @@ static PlannedStmt *pgws_planner_hook(Query *parse,
7676
constchar*query_string,
7777
#endif
7878
intcursorOptions,ParamListInfoboundParams);
79-
staticvoidpgws_ExecutorStart(QueryDesc*queryDesc,inteflags);
79+
static
80+
#ifPG_VERSION_NUM >=180000
81+
bool
82+
#else
83+
void
84+
#endif
85+
pgws_ExecutorStart(QueryDesc*queryDesc,inteflags);
8086
staticvoidpgws_ExecutorRun(QueryDesc*queryDesc,
8187
ScanDirectiondirection,
8288
uint64count
@@ -976,17 +982,22 @@ pgws_planner_hook(Query *parse,
976982
/*
977983
* ExecutorStart hook: save queryId for collector
978984
*/
979-
staticvoid
985+
static
986+
#ifPG_VERSION_NUM >=180000
987+
bool
988+
#else
989+
void
990+
#endif
980991
pgws_ExecutorStart(QueryDesc*queryDesc,inteflags)
981992
{
982993
inti=MyProc-ProcGlobal->allProcs;
983994

984995
if (pgws_enabled(nesting_level))
985996
pgws_proc_queryids[i]=queryDesc->plannedstmt->queryId;
986997
if (prev_ExecutorStart)
987-
prev_ExecutorStart(queryDesc,eflags);
998+
returnprev_ExecutorStart(queryDesc,eflags);
988999
else
989-
standard_ExecutorStart(queryDesc,eflags);
1000+
returnstandard_ExecutorStart(queryDesc,eflags);
9901001
}
9911002

9921003
staticvoid

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp