2
0

checksum.h 670 B

123456789101112131415161718192021222324
  1. /*-------------------------------------------------------------------------
  2. *
  3. * checksum.h
  4. * Checksum implementation for data pages.
  5. *
  6. * Portions Copyright (c) 1996-2022, 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. #include "storage/block.h"
  16. /*
  17. * Compute the checksum for a Postgres page. The page must be aligned on a
  18. * 4-byte boundary.
  19. */
  20. extern uint16 pg_checksum_page(char *page, BlockNumber blkno);
  21. #endif /* CHECKSUM_H */