| From: | Bruce Momjian <bruce(at)momjian(dot)us> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | jbe-mlist(at)magnetkern(dot)de, PostgreSQL-development <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Parameter NOT NULL to CREATE DOMAIN not the same as CHECK (VALUE IS NOT NULL) |
| Date: | 2025-04-08 01:34:06 |
| Message-ID: | Z_R9Dkq28Rlg8EDj@momjian.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-docs pgsql-hackers |
On Thu, Jan 30, 2025 at 08:26:54AM -0500, Bruce Momjian wrote:
> On Wed, Jan 8, 2025 at 04:24:34PM -0500, Tom Lane wrote:
> > Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > > I think this needs some serious research.
> >
> > We've discussed this topic before. The spec's definition of IS [NOT]
> > NULL for composite values is bizarre to say the least. I think
> > there's been an intentional choice to keep most NOT NULL checks
> > "simple", that is we look at the overall value's isnull bit and
> > don't probe any deeper than that.
> >
> > If the optimizations added in v17 changed existing behavior,
> > I agree that's bad. We should probably fix it so that those
> > are only applied when argisrow is false.
>
> I have developed the attached patch using your argisrow suggestion which
> fixes the test I posted. Is this something we should backpatch?
Patch applied. This fix will appear in the next minor PG 17 release.
--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com
Do not let urgent matters crowd out time for investment in the future.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Zeyuan Hu | 2025-04-08 02:32:01 | Possible documentation inaccuracy in optimizer README |
| Previous Message | David G. Johnston | 2025-04-07 13:51:41 | Re: Suggestion for docs, section "4.2.3 Subscripts": bounds and base |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Sami Imseih | 2025-04-08 01:58:41 | Re: Proposal - Allow extensions to set a Plan Identifier |
| Previous Message | Lukas Fittl | 2025-04-08 01:11:06 | Re: Proposal - Allow extensions to set a Plan Identifier |