1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-29 13:56:47 +03:00
Tom Lane 1d98fdaed8 Avoid creating a RESULT RTE that's marked LATERAL.
Commit 7266d0997 added code to pull up simple constant function
results, converting the RTE_FUNCTION RTE to a dummy RTE_RESULT
RTE since it no longer need be scanned.  But I forgot to clear
the LATERAL flag if the RTE has it set.  If the function reduced
to a constant, it surely contains no lateral references so this
simplification is logically OK.  It's needed because various other
places will Assert that RESULT RTEs aren't LATERAL.

Per bug #17097 from Yaoguang Chen.  Back-patch to v13 where the
faulty code came in.

Discussion: https://postgr.es/m/17097-3372ef9f798fc94f@postgresql.org
2021-07-09 13:38:24 -04:00
..
2021-01-02 13:06:25 -05:00
2021-04-20 14:35:16 +02:00
2021-01-02 13:06:25 -05:00
2021-06-21 12:33:50 +02:00
2021-06-28 08:36:44 +02:00
2021-02-19 08:10:15 +01:00
2021-06-27 09:41:16 +02:00
2021-06-28 08:36:44 +02:00
2018-03-30 17:33:04 -07:00
2021-05-10 14:36:21 +02:00