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

Commit 2c03640

Browse files
authored
Fix return of pgws_ExecutorStart since some systems gave warnings when returning from void functions
2 parents 3c1046c + 24b2d14 commit 2c03640

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pg_wait_sampling.c

+8
Original file line numberDiff line numberDiff line change
@@ -995,9 +995,17 @@ pgws_ExecutorStart(QueryDesc *queryDesc, int eflags)
995995
if (pgws_enabled(nesting_level))
996996
pgws_proc_queryids[i] = queryDesc->plannedstmt->queryId;
997997
if (prev_ExecutorStart)
998+
#if PG_VERSION_NUM >= 180000
998999
return prev_ExecutorStart(queryDesc, eflags);
1000+
#else
1001+
prev_ExecutorStart(queryDesc, eflags);
1002+
#endif
9991003
else
1004+
#if PG_VERSION_NUM >= 180000
10001005
return standard_ExecutorStart(queryDesc, eflags);
1006+
#else
1007+
standard_ExecutorStart(queryDesc, eflags);
1008+
#endif
10011009
}
10021010

10031011
static void

0 commit comments

Comments
 (0)