PostgreSQL Source Code
git master
|
#include "storage/bufpage.h"
Go to the source code of this file.
Data Structures | |
union | PGChecksummablePage |
Macros | |
#define | N_SUMS 32 |
#define | FNV_PRIME 16777619 |
#define | CHECKSUM_COMP(checksum, value) |
Functions | |
static uint32 | pg_checksum_block (const PGChecksummablePage *page) |
uint16 | pg_checksum_page (char *page, BlockNumber blkno) |
Variables | |
static const uint32 | checksumBaseOffsets [N_SUMS] |
#define CHECKSUM_COMP | ( | checksum, | |
value | |||
) |
Definition at line 135 of file checksum_impl.h.
#define FNV_PRIME 16777619 |
Definition at line 108 of file checksum_impl.h.
#define N_SUMS 32 |
Definition at line 106 of file checksum_impl.h.
|
static |
Definition at line 146 of file checksum_impl.h.
References Assert, CHECKSUM_COMP, checksumBaseOffsets, PGChecksummablePage::data, i, j, and N_SUMS.
Referenced by pg_checksum_page().
uint16 pg_checksum_page | ( | char * | page, |
BlockNumber | blkno | ||
) |
Definition at line 187 of file checksum_impl.h.
References Assert, PageIsNew(), PageHeaderData::pd_checksum, pg_checksum_block(), and PGChecksummablePage::phdr.
Referenced by page_checksum_internal(), PageIsVerifiedExtended(), PageSetChecksumCopy(), PageSetChecksumInplace(), rewriteVisibilityMap(), scan_file(), and verify_page_checksum().
Definition at line 121 of file checksum_impl.h.
Referenced by pg_checksum_block().