]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Use OFFSET 0 instead of ORDER BY to stop subquery pullup
authorDavid Rowley <drowley@postgresql.org>
Tue, 24 Jan 2023 00:50:11 +0000 (13:50 +1300)
committerDavid Rowley <drowley@postgresql.org>
Tue, 24 Jan 2023 00:50:11 +0000 (13:50 +1300)
commit0765b2f8f6fe8b7c1c07f94b764ef8bb74a292b4
treeb2c90907e6de2dd030adad6a4da07b8ebb900d3d
parentbcec08907e9357425ec0b3ea9ce03fd41fa6b8de
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
src/test/regress/expected/memoize.out
src/test/regress/sql/memoize.sql