1 | /*------------------------------------------------------------------------- |
2 | * |
3 | * checksum.h |
4 | * Checksum implementation for data pages. |
5 | * |
6 | * Portions Copyright (c) 1996-2019, 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 */ |
25 | |