pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wolfgang Walther <walther@technowledgy.de>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: Wrong result for comparing ROW(...) with IS NOT NULL
Date: Thu, 5 Nov 2020 14:40:53 +0100
Message-ID: <2ba24707-e7ba-2ccb-7269-71202a400a70@technowledgy.de> (raw)
In-Reply-To: <CAFj8pRAKiVUUFQawx70MXwd72rJ6D4UQFwAcmL5VVByE90HuYg@mail.gmail.com>
References: <21ff8e9c-627a-f949-fb00-a41b9ddcc9d3@technowledgy.de>
	<CAFj8pRAKiVUUFQawx70MXwd72rJ6D4UQFwAcmL5VVByE90HuYg@mail.gmail.com>

Pavel Stehule:
> for composite types this sentence is not valid
> 
> https://til.cybertec-postgresql.com/post/2019-09-29-Composite-types-and-NULL-in-PostgreSQL/
> 
> is null - is true, when all fields are null, and is not null is true, 
> when all fields is not null.

Ok, I can see how this explanation is somehow consistent. The link you 
gave is just another observation of that, though. Can I infer from 
anywhere in the official docs, that this is correct and expected behaviour?

Best

Wolfgang





view thread (9+ messages)  latest in thread

Message-ID: <2ba24707-e7ba-2ccb-7269-71202a400a70@technowledgy.de>
Permalink:  ../2ba24707-e7ba-2ccb-7269-71202a400a70@technowledgy.de/
Also on:    postgresql.org/message-id/2ba24707-e7ba-2ccb-7269-71202a400a70@technowledgy.de

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: walther@technowledgy.de, pavel.stehule@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: Wrong result for comparing ROW(...) with IS NOT NULL
  In-Reply-To: <2ba24707-e7ba-2ccb-7269-71202a400a70@technowledgy.de>

* 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