pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <drowley@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org, Richard Guo <guofenglinux@gmail.com>
Subject: Re: pgsql: Fix LATERAL join test in test memoize.sql
Date: Mon, 23 Jan 2023 18:37:41 -0500
Message-ID: <2144818.1674517061@sss.pgh.pa.us> (raw)
In-Reply-To: <E1pK6H4-0058ux-8l@gemulon.postgresql.org>
References: <E1pK6H4-0058ux-8l@gemulon.postgresql.org>

David Rowley <drowley@postgresql.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





view thread (6+ messages)  latest in thread

Message-ID: <2144818.1674517061@sss.pgh.pa.us>
Permalink:  ../2144818.1674517061@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2144818.1674517061@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, drowley@postgresql.org, guofenglinux@gmail.com
  Subject: Re: pgsql: Fix LATERAL join test in test memoize.sql
  In-Reply-To: <2144818.1674517061@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox