From 33c1236b80634922bb34fa90ac8e2fbfa51536dc Mon Sep 17 00:00:00 2001 From: "Anton A. Melnikov" Date: Mon, 17 Feb 2025 10:14:17 +0300 Subject: [PATCH] PGPRO-12044: Use vanilla ExecutorRun hook simplification. Caused by: - 3eea7a0c97e94f9570af87317ce3f6a41eb62768 (PostgreSQL) Simplify executor's determination of whether to use parallelism. - 138323be327fd35010074e03bfb382872a21c461 (pg_query_state subtree) Merged versions 9.6 and 10 Tags: pg_query_state --- pg_query_state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pg_query_state.c b/pg_query_state.c index 1949643..456ab09 100644 --- a/pg_query_state.c +++ b/pg_query_state.c @@ -51,7 +51,7 @@ void _PG_init(void); /* hooks defined in this module */ static void qs_ExecutorStart(QueryDesc *queryDesc, int eflags); -#if PG_VERSION_NUM < 100000 +#if PG_VERSION_NUM < 100000 || PG_VERSION_NUM >= 180000 static void qs_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count); #else static void qs_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, @@ -296,7 +296,7 @@ qs_ExecutorStart(QueryDesc *queryDesc, int eflags) * Catch any fatal signals */ static void -#if PG_VERSION_NUM < 100000 +#if PG_VERSION_NUM < 100000 || PG_VERSION_NUM >= 180000 qs_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count) #else qs_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count, @@ -308,7 +308,7 @@ qs_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count, PG_TRY(); { if (prev_ExecutorRun) -#if PG_VERSION_NUM < 100000 +#if PG_VERSION_NUM < 100000 || PG_VERSION_NUM >= 180000 prev_ExecutorRun(queryDesc, direction, count); else standard_ExecutorRun(queryDesc, direction, count); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy