@@ -51,7 +51,7 @@ void _PG_init(void);
51
51
52
52
/* hooks defined in this module */
53
53
static void qs_ExecutorStart (QueryDesc * queryDesc , int eflags );
54
- #if PG_VERSION_NUM < 100000
54
+ #if PG_VERSION_NUM < 100000 || PG_VERSION_NUM >= 180000
55
55
static void qs_ExecutorRun (QueryDesc * queryDesc , ScanDirection direction , uint64 count );
56
56
#else
57
57
static void qs_ExecutorRun (QueryDesc * queryDesc , ScanDirection direction ,
@@ -296,7 +296,7 @@ qs_ExecutorStart(QueryDesc *queryDesc, int eflags)
296
296
* Catch any fatal signals
297
297
*/
298
298
static void
299
- #if PG_VERSION_NUM < 100000
299
+ #if PG_VERSION_NUM < 100000 || PG_VERSION_NUM >= 180000
300
300
qs_ExecutorRun (QueryDesc * queryDesc , ScanDirection direction , uint64 count )
301
301
#else
302
302
qs_ExecutorRun (QueryDesc * queryDesc , ScanDirection direction , uint64 count ,
@@ -308,7 +308,7 @@ qs_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count,
308
308
PG_TRY ();
309
309
{
310
310
if (prev_ExecutorRun )
311
- #if PG_VERSION_NUM < 100000
311
+ #if PG_VERSION_NUM < 100000 || PG_VERSION_NUM >= 180000
312
312
prev_ExecutorRun (queryDesc , direction , count );
313
313
else
314
314
standard_ExecutorRun (queryDesc , direction , count );
0 commit comments