Re: Documentation enancement regarding NULL and operators - Mailing list pgsql-general

From Laurenz Albe
Subject Re: Documentation enancement regarding NULL and operators
Date
Msg-id 3a2d42ac40a5f7aac315227aab374c693b701781.camel@cybertec.at
Whole thread Raw
List pgsql-general
On Sun, 2024-12-15 at 17:35 +0000, Luca Dametto wrote:
> Most programming languages return "true" when two null values are compared,
> and false when, being the two values nullable, one of them is null and the
> other one isn't.
>
> [not SQL, however]
>
> Whilst I'd love to discuss the reasons of this, I understand that it would
> be a waste of time for everyone, as we cannot change the status-quo even
> if it made sense, as it would break many thousands of projects.
>
> For that reason, I'd just like to improve the documentation to add at least
> a note about "hey, this won't work as you might expect, because it works
> in a different way than 99% of programming languages out there.".

There are already efforts to improve the documentation concerning NULL:
https://commitfest.postgresql.org/51/5086/
If that doesn't cover your case, perhaps you can join the discussion
and suggest improvements.

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Query about pg_wal directory filled up
Next
From: Ron Johnson
Date:
Subject: Re: Intermittent errors when fetching cursor rows on PostgreSQL 16