From 0a1922c26978010fe6775a4cc47c36ce21d784df Mon Sep 17 00:00:00 2001 From: Georgy Shelkovy Date: Wed, 11 Dec 2024 09:10:37 +0500 Subject: [PATCH] Fix compatibility with pg18 (#67) Upstream commit postgres/postgres@3eea7a0 removed the "execute_once" argument from the ExecutorRun() API. --- pg_qualstats.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pg_qualstats.c b/pg_qualstats.c index 78cd6ff..a4c8e89 100644 --- a/pg_qualstats.c +++ b/pg_qualstats.c @@ -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 ); @@ -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 ) @@ -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);