aboutsummaryrefslogtreecommitdiff
path: root/src/include/storage/checksum.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/storage/checksum.h')
-rw-r--r--src/include/storage/checksum.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/storage/checksum.h b/src/include/storage/checksum.h
new file mode 100644
index 00000000000..e41fd9804b9
--- /dev/null
+++ b/src/include/storage/checksum.h
@@ -0,0 +1,23 @@
+/*-------------------------------------------------------------------------
+ *
+ * checksum.h
+ * Checksum implementation for data pages.
+ *
+ *
+ * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * src/include/storage/checksum.h
+ *
+ *-------------------------------------------------------------------------
+ */
+#ifndef CHECKSUM_H
+#define CHECKSUM_H
+
+/*
+ * Fowler-Noll-Vo 1a block checksum algorithm. The data argument should be
+ * aligned on a 4-byte boundary.
+ */
+extern uint32 checksum_block(char *data, uint32 size);
+
+#endif /* CHECKSUM_H */