Re: BUG #18170: Unexpected error: no relation entry for relid 3
Alexander Korotkov <aekorotkov@gmail.com>
From: Alexander Korotkov <aekorotkov@gmail.com>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Vik Fearing <vik@postgresfriends.org>,
zuming.jiang@inf.ethz.ch, pgsql-bugs@lists.postgresql.org, Alexander Korotkov <akorotkov@postgresql.org>
Date: 2023-11-06T08:04:34Z
Lists: pgsql-bugs
On Mon, Nov 6, 2023 at 9:27 AM Richard Guo <guofenglinux@gmail.com> wrote: > On Fri, Oct 27, 2023 at 1:12 AM Tom Lane <tgl@sss.pgh.pa.us> wrote: >> >> Also, while nosing around in this, I tried to pprint(root) at the >> point of the error, and got >> >> 2023-10-26 12:48:37.852 EDT [1186007] WARNING: could not dump unrecognized node type: 37413808 > > > I came across a similar warning when I tried to pprint(innerrel): > > WARNING: could not dump unrecognized node type: 0 > > ... even though we've made UniqueRelInfo be a Node type in commit > 2b26a69455. > > This happens because we use palloc to allocate UniqueRelInfo node in > innerrel_is_unique_ext(), which I think should be replaced by makeNode. > Attached is a trivial patch to do so. Pushed, thank you for catching this. ------ Regards, Alexander Korotkov
Commits
-
Disable run condition optimization for some WindowFuncs
- 7e5d20bbd13f 15.7 landed
- 9d36b883bfaa 16.3 landed
-
Fix allocation of UniqueRelInfo
- 93c85db3b5b8 17.0 landed
-
Make UniqueRelInfo a node
- 2b26a6945545 17.0 cited
-
Add "Add trailing commas to enum definitions" to .git-blame-ignore-revs
- 26f988212ead 17.0 cited
-
Remove useless self-joins
- d3d55ce57136 17.0 cited