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

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: dan-eli(at)mail(dot)ru
Subject: BUG #18869: /src/backend/optimizer/plan/createplan.c clause can be null if user isn't root
Date: 2025-03-26 10:20:05
Message-ID: 18869-0bacaab42e8d02eb@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18869
Logged by: Daniel Elishakov
Email address: dan-eli(at)mail(dot)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.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Euler Taveira 2025-03-26 14:27:43 Re: BUG #18868: /src/backend/optimizer/path/joinrels.c list_head can be NULL
Previous Message PG Bug reporting form 2025-03-26 10:16:53 BUG #18868: /src/backend/optimizer/path/joinrels.c list_head can be NULL