PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
checksum.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * checksum.h
4 * Checksum implementation for data pages.
5 *
6 * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
8 *
9 * src/include/storage/checksum.h
10 *
11 *-------------------------------------------------------------------------
12 */
13#ifndef CHECKSUM_H
14#define CHECKSUM_H
15
16#include "storage/block.h"
17
18/*
19 * Compute the checksum for a Postgres page. The page must be aligned on a
20 * 4-byte boundary.
21 */
22extern uint16 pg_checksum_page(char *page, BlockNumber blkno);
23
24#endif /* CHECKSUM_H */
uint32 BlockNumber
Definition: block.h:31
uint16_t uint16
Definition: c.h:484
uint16 pg_checksum_page(char *page, BlockNumber blkno)