Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 24b2d14

Browse filesBrowse files
author
Oleg Tselebrovskiy
committed
Fix return of pgws_ExecutorStart since some systems gave warnings when returning from void functions
1 parent 3c1046c commit 24b2d14
Copy full SHA for 24b2d14

File tree

1 file changed

+8
-0
lines changed
Filter options

1 file changed

+8
-0
lines changed

‎pg_wait_sampling.c

Copy file name to clipboardExpand all lines: pg_wait_sampling.c
+8Lines changed: 8 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.