2017-09-30 10:44:03 -04:00
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Checksum Implementation for Data Pages
|
|
|
|
***********************************************************************************************************************************/
|
2018-04-03 13:35:56 -04:00
|
|
|
#ifndef POSTGRES_PAGECHECKSUM_H
|
|
|
|
#define POSTGRES_PAGECHECKSUM_H
|
2017-08-25 16:47:47 -04:00
|
|
|
|
2018-04-06 21:46:45 -04:00
|
|
|
#include <stdint.h>
|
2017-08-25 16:47:47 -04:00
|
|
|
|
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Functions
|
|
|
|
***********************************************************************************************************************************/
|
2020-03-04 14:24:40 -05:00
|
|
|
uint64_t pgPageLsn(const unsigned char *page);
|
|
|
|
bool pgPageChecksumTest(
|
2020-03-05 11:14:53 -05:00
|
|
|
unsigned char *page, unsigned int blockNo, unsigned int pageSize, uint32_t ignoreWalId, uint32_t ignoreWalOffset);
|
2017-08-25 16:47:47 -04:00
|
|
|
|
|
|
|
#endif
|