Re: Query result differences between PostgreSQL 17 vs 16
Bruce Momjian <bruce@momjian.us>
From: Bruce Momjian <bruce@momjian.us>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, David Rowley <dgrowleyml@gmail.com>, Ronald Cruz <cruz@rentec.com>, pgsql-bugs@lists.postgresql.org, Peter Ford <pford@rentec.com>, "Aaron J. Garcia" <agarcia@rentec.com>
Date: 2025-03-11T22:03:40Z
Lists: pgsql-bugs
On Tue, Mar 4, 2025 at 04:30:26PM +0900, Richard Guo wrote: > On Tue, Mar 4, 2025 at 12:22 AM Tom Lane <tgl@sss.pgh.pa.us> wrote: > > Richard Guo <guofenglinux@gmail.com> writes: > > > Here is an updated patch, which also includes the test case you found > > > proving the no-clone-quals limitation in restriction_is_always_false > > > is also needed. > > > LGTM. > > Pushed and back-patched to v17. The fix will be included in next > minor release (17.5). Uh, if we fixed this for NULL optimization and backpatched, should we do the same for: Parameter NOT NULL to CREATE DOMAIN not the same as CHECK (VALUE IS NOT NULL) https://www.postgresql.org/message-id/flat/173591158454.714.7664064332419606037%40wrigleys.postgresql.org -- Bruce Momjian <bruce@momjian.us> https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Commits
-
Avoid NullTest deduction for clone clauses
- bc5a08af3c44 17.5 landed
- 716a051aaccd 18.0 landed
-
Add better handling of redundant IS [NOT] NULL quals
- b262ad440ede 17.0 cited