Re: "SELECT ... FROM DUAL" is not quite as silly as it appears

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexander Kuzmenkov <a.kuzmenkov@postgrespro.ru>
Cc: pgsql-hackers@lists.postgresql.org, Mark Dilger <hornschnorter@gmail.com>
Date: 2018-11-29T19:13:07Z
Lists: pgsql-hackers
Alexander Kuzmenkov <a.kuzmenkov@postgrespro.ru> writes:
> Oh, one more thing: I see a warning without --enable-cassert in 
> create_resultscan_plan, because rte is only used in an Assert.
> src/backend/optimizer/plan/createplan.c:3457:17: warning: variable ‘rte’ 
> set but not used [-Wunused-but-set-variable]
>    RangeTblEntry *rte;

Ooops, I had not seen this before sending v4 patch.  Doesn't seem worth
posting a v5 for, but I'll be sure to fix it.

			regards, tom lane


Commits

  1. In the planner, replace an empty FROM clause with a dummy RTE.

  2. Fix jit compilation bug on wide tables.