Commit 3a2cb598 authored by Tom Lane's avatar Tom Lane

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 cc415a56.
parent ee4a2c4a
...@@ -249,9 +249,7 @@ standard_ExecutorStart(QueryDesc *queryDesc, int eflags) ...@@ -249,9 +249,7 @@ standard_ExecutorStart(QueryDesc *queryDesc, int eflags)
estate->es_crosscheck_snapshot = RegisterSnapshot(queryDesc->crosscheck_snapshot); estate->es_crosscheck_snapshot = RegisterSnapshot(queryDesc->crosscheck_snapshot);
estate->es_top_eflags = eflags; estate->es_top_eflags = eflags;
estate->es_instrument = queryDesc->instrument_options; estate->es_instrument = queryDesc->instrument_options;
estate->es_jit_flags = queryDesc->plannedstmt->jitFlags;
if (queryDesc->plannedstmt)
estate->es_jit_flags = queryDesc->plannedstmt->jitFlags;
/* /*
* Set up an AFTER-trigger statement context, unless told not to, or * Set up an AFTER-trigger statement context, unless told not to, or
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment