Re: pg17: XX000: no relation entry for relid 0 - Mailing list pgsql-hackers

From Richard Guo
Subject Re: pg17: XX000: no relation entry for relid 0
Date
Msg-id CAMbWs4_v_wrEBK1xPWxeX7Sr-EwD3k+GYG4ioiXfc302Qn=8uA@mail.gmail.com
Whole thread
In response to Re: pg17: XX000: no relation entry for relid 0  (Tender Wang <tndrwang@gmail.com>)
List pgsql-hackers
On Sat, Apr 11, 2026 at 10:32 AM Tender Wang <tndrwang@gmail.com> wrote:
> Richard Guo <guofenglinux@gmail.com> 于2026年4月10日周五 22:39写道:
> > This looks like the right fix to me.  We can use some comment here.

> comments added.
> Please see the attached patch.

I've pushed and back-patched the fix after some tweaks to the comment
and commit message.  I also used explain (verbose, costs off) in the
test case so that we can observe that the inner UNION ALL's output
type doesn't match the outer's.

Thanks for the report and the patch.

- Richard



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Automatically sizing the IO worker pool
Next
From: jian he
Date:
Subject: Re: FOR PORTION OF does not recompute GENERATED STORED columns that depend on the range column