Re: Assert failure of the cross-check for nullingrels

Jonathan S. Katz <jkatz@postgresql.org>

From: "Jonathan S. Katz" <jkatz@postgresql.org>
To: Richard Guo <guofenglinux@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: rmt@lists.postgresql.org
Date: 2023-05-16T13:10:53Z
Lists: pgsql-hackers
On 5/12/23 3:02 AM, Richard Guo wrote:
> 
> On Fri, Mar 17, 2023 at 11:05 AM Richard Guo <guofenglinux@gmail.com 
> <mailto:guofenglinux@gmail.com>> wrote:
> 
>     Here is an updated patch with comments and test case.  I also change the
>     code to store 'group_clause_relids' directly in RestrictInfo.
> 
> 
> BTW, I've added an open item for this issue.

[RMT hat]

Is there a specific commit targeted for v16 that introduced this issue? 
Does it only affect v16 or does it affect backbranches?

Thanks,

Jonathan

Commits

  1. In clause_is_computable_at(), test required_relids for clone clauses.

  2. Tweak API of new function clause_is_computable_at().