pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use OFFSET 0 instead of ORDER BY to stop subquery pullup
Date: Tue, 24 Jan 2023 00:49:31 +0000
Message-ID: <E1pK7VD-0059mE-Jc@gemulon.postgresql.org> (raw)

Use OFFSET 0 instead of ORDER BY to stop subquery pullup

b762fed64 recently changed this test to prevent subquery pullup to allow
us to test Memoize with lateral_vars.  As pointed out by Tom Lane, OFFSET
0 is our standard way of preventing subquery pullups, so do it that way
instead.

Discussion: https://postgr.es/m/2144818.1674517061@sss.pgh.pa.us
Backpatch-through: 14, same as b762fed64

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9567686ec834e50ab10ae872a8394c9a9e590b0d

Modified Files
--------------
src/test/regress/expected/memoize.out | 4 ++--
src/test/regress/sql/memoize.sql      | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1pK7VD-0059mE-Jc@gemulon.postgresql.org>
Permalink:  ../E1pK7VD-0059mE-Jc@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pK7VD-0059mE-Jc@gemulon.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: drowley@postgresql.org
  Subject: Re: pgsql: Use OFFSET 0 instead of ORDER BY to stop subquery pullup
  In-Reply-To: <E1pK7VD-0059mE-Jc@gemulon.postgresql.org>
  References: <E1pK7VD-0059mE-Jc@gemulon.postgresql.org>

* 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