Re: pgsql: Fix LATERAL join test in test memoize.sql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Rowley <drowley(at)postgresql(dot)org>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org, Richard Guo <guofenglinux(at)gmail(dot)com>
Subject: Re: pgsql: Fix LATERAL join test in test memoize.sql
Date: 2023-01-23 23:37:41
Message-ID: 2144818.1674517061@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

David Rowley <drowley(at)postgresql(dot)org> writes:
> Here we add a simple ORDER BY to stop the planner from being able to
> pullup the lateral subquery.

Hmmm ... we have an agreed syntax for a subquery optimization fence,
and that ain't it. I wouldn't count on this not breaking again in
the future. Why not OFFSET 0, which is the usual method?

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2023-01-24 00:08:01 Re: pgsql: Fix LATERAL join test in test memoize.sql
Previous Message David Rowley 2023-01-23 23:30:50 pgsql: Fix LATERAL join test in test memoize.sql