Re: BUG #16862: Unexpected result of checking for null "IS NOT NULL" in function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: firstdismay(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16862: Unexpected result of checking for null "IS NOT NULL" in function
Date: 2021-02-12 15:23:12
Message-ID: 1552247.1613143392@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2021-02-12 18:11:53 Re: BUG #16862: Unexpected result of checking for null "IS NOT NULL" in function
Previous Message Tom Lane 2021-02-12 15:06:57 Re: BUG #16860: Documentation: GUC Parameters are not explained