Content-Length: 263713 | pFad | http://github.com/postgrespro/postgres_cluster/commit/3a2cb59887421a04b5ee158580198d731d115c61

12 Remove useless if-test. · postgrespro/postgres_cluster@3a2cb59 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/3a2cb59887421a04b5ee158580198d731d115c61

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy