codekingpro/portable-devtools
114k
1/*-------------------------------------------------------------------------2 *3 * checksum.h4 * Checksum implementation for data pages.5 *6 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group7 * Portions Copyright (c) 1994, Regents of the University of California8 *9 * src/include/storage/checksum.h10 *11 *-------------------------------------------------------------------------12 */13#ifndef CHECKSUM_H14#define CHECKSUM_H15 16#include "storage/block.h"17 18/*19 * Compute the checksum for a Postgres page. The page must be aligned on a20 * 4-byte boundary.21 */22extern uint16 pg_checksum_page(char *page, BlockNumber blkno);23 24#endif /* CHECKSUM_H */25 