-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix writing of checksum for blocks around the segment boundary.
In direct write mode, pg_bulkload loads data into a fixed number of private buffers and once they are full, writes those buffers to the actual relation file. Each page's checksum is set before writing to the file, during which it must pass the block number for checksum calculation. Due to a bug in how block number is calculated, it calculated the wrong checksum in certain cases, especially, when a segment of the relation is about to get full.
- Loading branch information
Showing
1 changed file
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters