Re: Improve LATERAL join case in test memoize.sql

2023-01-23 Thread David Rowley
On Mon, 16 Jan 2023 at 22:27, Richard Guo wrote: > I happened to notice we have the case in memoize.sql that tests for > memoize node with LATERAL joins, which is > > -- Try with LATERAL joins > SELECT explain_memoize(' > SELECT COUNT(*),AVG(t2.unique1) FROM tenk1 t1, > LATERAL (SELECT t2.unique1

Improve LATERAL join case in test memoize.sql

2023-01-16 Thread Richard Guo
I happened to notice we have the case in memoize.sql that tests for memoize node with LATERAL joins, which is -- Try with LATERAL joins SELECT explain_memoize(' SELECT COUNT(*),AVG(t2.unique1) FROM tenk1 t1, LATERAL (SELECT t2.unique1 FROM tenk1 t2 WHERE t1.twenty = t2.unique1) t2 WHERE t1.unique1