pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #18869: /src/backend/optimizer/plan/createplan.c clause can be null if user isn't root
2+ messages / 2 participants
[nested] [flat]
* BUG #18869: /src/backend/optimizer/plan/createplan.c clause can be null if user isn't root
@ 2025-03-26 10:20 PG Bug reporting form <noreply@postgresql.org>
0 siblings, 1 reply; 2+ messages in thread
From: PG Bug reporting form @ 2025-03-26 10:20 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: dan-eli@mail.ru
The following bug has been logged on the website:
Bug reference: 18869
Logged by: Daniel Elishakov
Email address: dan-eli@mail.ru
PostgreSQL version: 17.4
Operating system: ubuntu 20.04
Description:
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #18869: /src/backend/optimizer/plan/createplan.c clause can be null if user isn't root
@ 2025-03-26 14:35 Tom Lane <tgl@sss.pgh.pa.us>
parent: PG Bug reporting form <noreply@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2025-03-26 14:35 UTC (permalink / raw)
To: dan-eli@mail.ru; +Cc: pgsql-bugs@lists.postgresql.org
PG Bug reporting form <noreply@postgresql.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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-03-26 14:35 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-03-26 10:20 BUG #18869: /src/backend/optimizer/plan/createplan.c clause can be null if user isn't root PG Bug reporting form <noreply@postgresql.org>
2025-03-26 14:35 ` Tom Lane <tgl@sss.pgh.pa.us>
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