diff options
author | Robert Haas <rhaas@postgresql.org> | 2024-04-05 13:39:29 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2024-04-05 13:41:19 -0400 |
commit | 55a5ee30cd65886ff0a2e7ffef4ec2816fbec273 (patch) | |
tree | e3384afb0853b27ac43e61e5b0a897414095b298 /src/backend/executor/nodeModifyTable.c | |
parent | 079d94ab3412fdeda637a24b17bde53c576b0007 (diff) | |
download | postgresql-55a5ee30cd65886ff0a2e7ffef4ec2816fbec273.tar.gz postgresql-55a5ee30cd65886ff0a2e7ffef4ec2816fbec273.zip |
Fix incorrect calculation in BlockRefTableEntryGetBlocks.
The previous formula was incorrect in the case where the function's
nblocks argument was a multiple of BLOCKS_PER_CHUNK, which happens
whenever a relation segment file is exactly 512MB or exactly 1GB in
length. In such cases, the formula would calculate a stop_offset of
0 rather than 65536, resulting in modified blocks in the second half
of a 1GB file, or all the modified blocks in a 512MB file, being
omitted from the incremental backup.
Reported off-list by Tomas Vondra and Jakub Wartak.
Discussion: http://postgr.es/m/CA+TgmoYwy_KHp1-5GYNmVa=zdeJWhNH1T0SBmEuvqQNJEHj1Lw@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions