1/* contrib/pageinspect/pageinspect--1.1--1.2.sql */
2
3-- complain if script is sourced in psql, rather than via ALTER EXTENSION
4\echo Use "ALTER EXTENSION pageinspect UPDATE TO '1.2'" to load this file. \quit
5
6DROP FUNCTION page_header(bytea);
7CREATE FUNCTION page_header(IN page bytea,
8    OUT lsn pg_lsn,
9    OUT checksum smallint,
10    OUT flags smallint,
11    OUT lower smallint,
12    OUT upper smallint,
13    OUT special smallint,
14    OUT pagesize smallint,
15    OUT version smallint,
16    OUT prune_xid xid)
17AS 'MODULE_PATHNAME', 'page_header'
18LANGUAGE C STRICT;
19