diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-15 18:34:14 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-15 18:34:21 -0500 |
commit | 4b61f6783793a362423e511d76027e5983fc241c (patch) | |
tree | 7480c33c0b132c39a72272babaaa8411d06c7bd5 /src/backend/utils/adt/ruleutils.c | |
parent | 1c0dfaa68fa491f2ec4c6f7905246ef07e504d4c (diff) | |
download | postgresql-4b61f6783793a362423e511d76027e5983fc241c.tar.gz postgresql-4b61f6783793a362423e511d76027e5983fc241c.zip |
Fix incorrect loop counts in tidbitmap.c.
A couple of places that should have been iterating over WORDS_PER_CHUNK
words were iterating over WORDS_PER_PAGE words instead. This thinko
accidentally failed to fail, because (at least on common architectures
with default BLCKSZ) WORDS_PER_CHUNK is a bit less than WORDS_PER_PAGE,
and the extra words being looked at were always zero so nothing happened.
Still, it's a bug waiting to happen if anybody ever fools with the
parameters affecting TIDBitmap sizes, and it's a small waste of cycles
too. So back-patch to all active branches.
Etsuro Fujita
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions