Skip to content

Commit

Permalink
Fix compatibility with pg18 (#67)
Browse files Browse the repository at this point in the history
Upstream commit postgres/postgres@3eea7a0 removed the "execute_once" argument from the ExecutorRun() API.
  • Loading branch information
RekGRpth authored Dec 11, 2024
1 parent 1c73304 commit 0a1922c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pg_qualstats.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static void pgqs_ExecutorRun(QueryDesc *queryDesc,
#else
long count
#endif
#if PG_VERSION_NUM >= 100000
#if PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 180000
, bool execute_once
#endif
);
Expand Down Expand Up @@ -653,7 +653,7 @@ pgqs_ExecutorRun(QueryDesc *queryDesc,
#else
long count
#endif
#if PG_VERSION_NUM >= 100000
#if PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 180000
,bool execute_once
#endif
)
Expand All @@ -662,13 +662,13 @@ pgqs_ExecutorRun(QueryDesc *queryDesc,
PG_TRY();
{
if (prev_ExecutorRun)
#if PG_VERSION_NUM >= 100000
#if PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 180000
prev_ExecutorRun(queryDesc, direction, count, execute_once);
#else
prev_ExecutorRun(queryDesc, direction, count);
#endif
else
#if PG_VERSION_NUM >= 100000
#if PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 180000
standard_ExecutorRun(queryDesc, direction, count, execute_once);
#else
standard_ExecutorRun(queryDesc, direction, count);
Expand Down

0 comments on commit 0a1922c

Please sign in to comment.