]> granicus.if.org Git - postgresql/commitdiff
Add pageinspect--1.0--1.sql for checksum changes
authorSimon Riggs <simon@2ndQuadrant.com>
Mon, 18 Mar 2013 14:39:17 +0000 (14:39 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Mon, 18 Mar 2013 14:39:17 +0000 (14:39 +0000)
contrib/pageinspect/pageinspect--1.0--1.1.sql [new file with mode: 0644]

diff --git a/contrib/pageinspect/pageinspect--1.0--1.1.sql b/contrib/pageinspect/pageinspect--1.0--1.1.sql
new file mode 100644 (file)
index 0000000..5997c58
--- /dev/null
@@ -0,0 +1,18 @@
+/* contrib/pageinspect/pageinspect--1.0--1.1.sql */
+
+-- complain if script is sourced in psql, rather than via ALTER EXTENSION UPDATE
+\echo Use "ALTER EXTENSION pageinspect UPDATE TO 1.1" to load this file. \quit
+
+DROP FUNCTION page_header(bytea);
+CREATE FUNCTION page_header(IN page bytea,
+    OUT lsn text,
+    OUT checksum smallint,
+    OUT flags smallint,
+    OUT lower smallint,
+    OUT upper smallint,
+    OUT special smallint,
+    OUT pagesize smallint,
+    OUT version smallint,
+    OUT prune_xid xid)
+AS 'MODULE_PATHNAME', 'page_header'
+LANGUAGE C STRICT;