BUG #18869: /src/backend/optimizer/plan/createplan.c clause can be null if user isn't root - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #18869: /src/backend/optimizer/plan/createplan.c clause can be null if user isn't root
Date
Msg-id 18869-0bacaab42e8d02eb@postgresql.org
Whole thread Raw
Responses Re: BUG #18869: /src/backend/optimizer/plan/createplan.c clause can be null if user isn't root
List pgsql-bugs
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.


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #18868: /src/backend/optimizer/path/joinrels.c list_head can be NULL
Next
From: "Euler Taveira"
Date:
Subject: Re: BUG #18868: /src/backend/optimizer/path/joinrels.c list_head can be NULL