From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Greg Burd <greg(at)burd(dot)me> |
Cc: | David Rowley <dgrowleyml(at)gmail(dot)com>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Fixing a few minor misusages of bms_union() |
Date: | 2025-10-03 15:30:36 |
Message-ID: | 1321393.1759505436@sss.pgh.pa.us |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Greg Burd <greg(at)burd(dot)me> writes:
> On Oct 3 2025, at 10:04 am, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> This change in substitute_phv_relids_walker is *not* safe according
>> to the routine's head comment:
> I'll have to remember to scroll up a bit more when reviewing and always
> read the header comments. I missed that one entirely, apologies. When I
> read the bitmapset_del() below the bitmapset_union() I incorrectly
> assumed that it was okay to modify it in-place. Maybe a short comment
> above that line would be useful?
After we've done the union(), we know we have a singly-referenced
bitmapset, so it's safe for the second change to be in-place.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2025-10-03 15:47:21 | Re: split func.sgml to separated individual sgml files |
Previous Message | Nathan Bossart | 2025-10-03 15:16:11 | Re: anonymous unions (C11) |