From: Tom Lane <tgl@sss.pgh.pa.us>
To: firstdismay@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16862: Unexpected result of checking for null "IS NOT NULL" in function
Date: Fri, 12 Feb 2021 10:23:12 -0500
Message-ID: <1552247.1613143392@sss.pgh.pa.us> (raw)
In-Reply-To: <16862-c10a7401d2973a9b@postgresql.org>
References: <16862-c10a7401d2973a9b@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> 1. Create TABLE: "bpd"."group" AND view
> 2. Create FUNCTION:
> DECLARE: egroupV "bpd"."vgroup"%ROWTYPE; view
> DECLARE: egroupT "bpd"."group"%ROWTYPE; table
> 3. Retrieving data checking the result in function:
> SELECT * INTO egroupV FROM "bpd"."vgroup" WHERE id = iid;
> SELECT * INTO egroupT FROM "bpd"."group" WHERE id = iid;
> IF (egroupV IS NOT NULL) THEN => state OK
> IF (egroupT IS NOT NULL) THEN => state OK
> IF NOT(egroupV IS NULL) THEN => state OK
> IF NOT(egroupT IS NULL) THEN => state OK
> 4. ALTER TABLE "bpd"."group" ADD COLUMN
> 5. Retrieving data checking the result in function:
> SELECT * INTO egroup FROM "bpd"."vgroup" WHERE id = iid;
> SELECT * INTO egroupT FROM "bpd"."group" WHERE id = iid;
> IF (egroupV IS NOT NULL) THEN => state OK
> IF (egroupT IS NOT NULL) THEN => state NOT WORK???????????
> IF NOT(egroupV IS NULL) THEN => state OK
> IF NOT(egroupT IS NULL) THEN => state OK
It's impossible to make any sense of this report. What do you
think "not work" means? You have not provided enough detail to
let someone else reproduce whatever you're seeing, either.
Please read
https://wiki.postgresql.org/wiki/Guide_to_reporting_problems
regards, tom lane
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: tgl@sss.pgh.pa.us, firstdismay@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16862: Unexpected result of checking for null "IS NOT NULL" in function
In-Reply-To: <1552247.1613143392@sss.pgh.pa.us>
* 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