Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 33c1236

Browse files
committed
PGPRO-12044: Use vanilla ExecutorRun hook simplification.
Caused by: - 3eea7a0c97e94f9570af87317ce3f6a41eb62768 (PostgreSQL) Simplify executor's determination of whether to use parallelism. - 138323b (pg_query_state subtree) Merged versions 9.6 and 10 Tags: pg_query_state
1 parent ee0d4a8 commit 33c1236

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pg_query_state.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void _PG_init(void);
5151

5252
/* hooks defined in this module */
5353
static void qs_ExecutorStart(QueryDesc *queryDesc, int eflags);
54-
#if PG_VERSION_NUM < 100000
54+
#if PG_VERSION_NUM < 100000 || PG_VERSION_NUM >= 180000
5555
static void qs_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count);
5656
#else
5757
static void qs_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction,
@@ -296,7 +296,7 @@ qs_ExecutorStart(QueryDesc *queryDesc, int eflags)
296296
* Catch any fatal signals
297297
*/
298298
static void
299-
#if PG_VERSION_NUM < 100000
299+
#if PG_VERSION_NUM < 100000 || PG_VERSION_NUM >= 180000
300300
qs_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count)
301301
#else
302302
qs_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count,
@@ -308,7 +308,7 @@ qs_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count,
308308
PG_TRY();
309309
{
310310
if (prev_ExecutorRun)
311-
#if PG_VERSION_NUM < 100000
311+
#if PG_VERSION_NUM < 100000 || PG_VERSION_NUM >= 180000
312312
prev_ExecutorRun(queryDesc, direction, count);
313313
else
314314
standard_ExecutorRun(queryDesc, direction, count);

0 commit comments

Comments
 (0)