Re: Wrong result for comparing ROW(...) with IS NOT NULL

From: Wolfgang Walther <walther(at)technowledgy(dot)de>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: Wrong result for comparing ROW(...) with IS NOT NULL
Date: 2020-11-05 15:06:01
Message-ID: fdb5eb66-8f31-4e45-7388-f83fdbaef507@technowledgy.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Wolfgang Walther:

> Thank you, that explains it very well.
>
> When I realized there was something unexpected going on, I was looking
> at all the ROW() syntax in the docs and I found this (as mentioned
> upthread):
>
> https://www.postgresql.org/docs/current/sql-expressions.html#SQL-SYNTAX-ROW-CONSTRUCTORS
>
>
> It might be worth it to either add another example for IS NOT NULL, like
>
> SELECT ROW(table.*) IS NOT NULL FROM table;  -- detect all-non-null rows
>
> or add a link to section 9.2, that you mentioned. Or do both.
>
>
>
> Another thing that could be improved:
>
> Below that example there is a link to section 9.24. The link is:
>
> https://www.postgresql.org/docs/current/functions-comparisons.html
>
> The link you gave me to section 9.2 is (replaced 13 with current):
>
> https://www.postgresql.org/docs/current/functions-comparison.html
>
> Like really? The only difference is the "s" in comparison(s). That
> confused me at first for a bit, because I thought I had read your link
> already :)
>
> I think that link for 9.24 could be much better chosen.
> row-array-comparisons.html would match the content.

Attached are some patches.

Best

Wolfgang

Attachment Content-Type Size
0001-doc-Add-IS-NOT-NULL-example-and-link-to-section-9.2-.patch text/plain 1.2 KB
0002-doc-change-id-of-section-9.24-to-functions-row-array.patch text/plain 2.6 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-11-05 15:41:48 Re: BUG #16703: pg-dump fails to process recursive view definition
Previous Message Tom Lane 2020-11-05 15:00:28 Re: BUG #16703: pg-dump fails to process recursive view definition