Skip to content

Commit 3a2cb59

Browse files
committed
Remove useless if-test.
Coverity complained that this check is pointless, and it's right. There is no case where we'd call ExecutorStart with a null plannedstmt, and if we did, it'd have crashed before here. Thinko in commit cc415a5.
1 parent ee4a2c4 commit 3a2cb59

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/backend/executor/execMain.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,7 @@ standard_ExecutorStart(QueryDesc *queryDesc, int eflags)
249249
estate->es_crosscheck_snapshot = RegisterSnapshot(queryDesc->crosscheck_snapshot);
250250
estate->es_top_eflags = eflags;
251251
estate->es_instrument = queryDesc->instrument_options;
252-
253-
if (queryDesc->plannedstmt)
254-
estate->es_jit_flags = queryDesc->plannedstmt->jitFlags;
252+
estate->es_jit_flags = queryDesc->plannedstmt->jitFlags;
255253

256254
/*
257255
* Set up an AFTER-trigger statement context, unless told not to, or

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