You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-05 00:28:52 +02:00
We were using a customized version which worked fine but was hard to merge with upstream changes. Now this code is maintained much like the types in static.auto.h that we copy and check with each release. The goal is to eventually build directly against PostgreSQL (either source or libcommon) and this brings us one step closer.
17 lines
866 B
C
17 lines
866 B
C
/***********************************************************************************************************************************
|
|
Checksum Implementation for Data Pages
|
|
***********************************************************************************************************************************/
|
|
#ifndef POSTGRES_PAGECHECKSUM_H
|
|
#define POSTGRES_PAGECHECKSUM_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/***********************************************************************************************************************************
|
|
Functions
|
|
***********************************************************************************************************************************/
|
|
uint64_t pgPageLsn(const unsigned char *page);
|
|
bool pgPageChecksumTest(
|
|
unsigned char *page, unsigned int blockNo, unsigned int pageSize, uint32_t ignoreWalId, uint32_t ignoreWalOffset);
|
|
|
|
#endif
|