Re: Assert failure on 'list_member_ptr(rel->joininfo, restrictinfo)'
Alexander Korotkov <aekorotkov@gmail.com>
From: Alexander Korotkov <aekorotkov@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>,
Richard Guo <guofenglinux@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2023-11-27T18:37:45Z
Lists: pgsql-hackers
On Mon, Nov 27, 2023 at 8:07 PM Andres Freund <andres@anarazel.de> wrote: > > On 2023-11-27 11:29:48 +0530, Ashutosh Bapat wrote: > > How do we ensure that we are not making unnecessary copies of Bitmapsets? > > We don't - but that's not specific to this patch. Bitmapsets typically aren't > very large, I doubt that it's a significant proportion of the memory > usage. Adding refcounts or such would likely add more overhead than it'd save, > both in time and memory. > > I am a bit worried about the maintainability of remove_rel_from_query() et > al. Is there any infrastructure for detecting that some PlannerInfo field that > needs updating wasn't updated? There's not even a note in PlannerInfo that > documents that that needs to happen. That makes sense, thank you. We need at least a comment about this. I'll write a patch adding this comment. BTW, what do you think about the patches upthread [1]. Links 1. https://www.postgresql.org/message-id/CAPpHfdtLgCryACcrmLv=Koq9rAB3=tr5y9D84dGgvUhSCvjzjg@mail.gmail.com ------ Regards, Alexander Korotkov
Commits
-
Add asserts to bimapset manipulation functions
- 71a3e8c43ba8 17.0 landed
-
Make replace_relid() leave argument unmodified
- e0477837ce49 17.0 landed
-
REALLOCATE_BITMAPSETS manual compile-time option
- 7d58f2342bd3 17.0 landed