Re: BUG #18869: /src/backend/optimizer/plan/createplan.c clause can be null if user isn't root

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: dan-eli(at)mail(dot)ru
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18869: /src/backend/optimizer/plan/createplan.c clause can be null if user isn't root
Date: 2025-03-26 14:35:36
Message-ID: 1449238.1742999736@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:
> If root is NULL, pointer clause can also be NULL and then dereferenced at
> createplan.c:5104 at if (IsA(clause, OpExpr)). I guess there should be a
> check for NULL.

root would never be null here, and neither would the clause.

In general, we are not terribly interested in "bug reports" generated
by unsupported static analysis.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2025-03-26 16:00:59 Re: BUG #18866: Running pg_freespace() on views triggers an Abort
Previous Message Euler Taveira 2025-03-26 14:27:43 Re: BUG #18868: /src/backend/optimizer/path/joinrels.c list_head can be NULL