Skip to content

Commit fafeda0

Browse files
committed
Revert "Fix compatibility with pg18"
This reverts commit dd524f2.
1 parent 9d713ce commit fafeda0

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

pg_wait_sampling.c

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,7 @@ static PlannedStmt *pgws_planner_hook(Query *parse,
7676
const char *query_string,
7777
#endif
7878
int cursorOptions, ParamListInfo boundParams);
79-
static
80-
#if PG_VERSION_NUM >= 180000
81-
bool
82-
#else
83-
void
84-
#endif
85-
pgws_ExecutorStart(QueryDesc *queryDesc, int eflags);
79+
static void pgws_ExecutorStart(QueryDesc *queryDesc, int eflags);
8680
static void pgws_ExecutorRun(QueryDesc *queryDesc,
8781
ScanDirection direction,
8882
uint64 count
@@ -982,22 +976,17 @@ pgws_planner_hook(Query *parse,
982976
/*
983977
* ExecutorStart hook: save queryId for collector
984978
*/
985-
static
986-
#if PG_VERSION_NUM >= 180000
987-
bool
988-
#else
989-
void
990-
#endif
979+
static void
991980
pgws_ExecutorStart(QueryDesc *queryDesc, int eflags)
992981
{
993982
int i = MyProc - ProcGlobal->allProcs;
994983

995984
if (pgws_enabled(nesting_level))
996985
pgws_proc_queryids[i] = queryDesc->plannedstmt->queryId;
997986
if (prev_ExecutorStart)
998-
return prev_ExecutorStart(queryDesc, eflags);
987+
prev_ExecutorStart(queryDesc, eflags);
999988
else
1000-
return standard_ExecutorStart(queryDesc, eflags);
989+
standard_ExecutorStart(queryDesc, eflags);
1001990
}
1002991

1003992
static void

0 commit comments

Comments
 (0)
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