Re: Can rs_cindex be < 0 for bitmap heap scans?
Melanie Plageman <melanieplageman@gmail.com>
From: Melanie Plageman <melanieplageman@gmail.com>
To: Dilip Kumar <dilipbalaut@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>, Tomas Vondra <tv@fuzzy.cz>, Tom Lane <tgl@sss.pgh.pa.us>
Date: 2024-10-25T16:37:09Z
Lists: pgsql-hackers
Attachments
- v3-0001-Make-rs_cindex-and-rs_ntuples-unsigned.patch (text/x-patch) patch v3-0001
On Fri, Oct 25, 2024 at 10:29 AM Melanie Plageman <melanieplageman@gmail.com> wrote: > > Tom suggested off-list that if rs_cindex can't be zero, then it should > be unsigned. I checked the other scan types using the > HeapScanDescData, and it seems none of them use values of rs_cindex or > rs_ntuples < 0. As such, here is a patch making both rs_ntuples and > rs_cindex unsigned. I realized one of the asserts was superfluous. Please find v3 attached. - Melanie
Commits
-
Fix overflow danger in SampleHeapTupleVisible(), take 2
- 94bb6c4410d8 18.0 landed
-
Fix overflow danger in SampleHeapTupleVisible()
- 28328ec87b45 18.0 landed
-
Make rs_cindex and rs_ntuples unsigned
- 68d9662be1c4 18.0 landed