diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index 890067757c..f47c691d12 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -249,9 +249,7 @@ standard_ExecutorStart(QueryDesc *queryDesc, int eflags) estate->es_crosscheck_snapshot = RegisterSnapshot(queryDesc->crosscheck_snapshot); estate->es_top_eflags = eflags; estate->es_instrument = queryDesc->instrument_options; - - if (queryDesc->plannedstmt) - estate->es_jit_flags = queryDesc->plannedstmt->jitFlags; + estate->es_jit_flags = queryDesc->plannedstmt->jitFlags; /* * Set up an AFTER-trigger statement context, unless told not to, or