PostgreSQL Source Code
git master
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
*/
22
extern
uint16
pg_checksum_page
(
char
*page,
BlockNumber
blkno);
23
24
#endif
/* CHECKSUM_H */
block.h
BlockNumber
uint32 BlockNumber
Definition:
block.h:31
uint16
unsigned short uint16
Definition:
c.h:505
pg_checksum_page
uint16 pg_checksum_page(char *page, BlockNumber blkno)
Definition:
checksum_impl.h:187
src
include
storage
checksum.h
Generated on Sun Sep 15 2024 12:13:24 for PostgreSQL Source Code by
1.9.1