1 /* contrib/pageinspect/pageinspect--1.8--1.9.sql */
3 -- complain if script is sourced in psql, rather than via ALTER EXTENSION
4 \echo Use "ALTER EXTENSION pageinspect UPDATE TO '1.9'" to load this file. \quit
7 -- gist_page_opaque_info()
9 CREATE FUNCTION gist_page_opaque_info(IN page bytea,
14 AS 'MODULE_PATHNAME', 'gist_page_opaque_info'
15 LANGUAGE C STRICT PARALLEL SAFE;
19 -- gist_page_items_bytea()
21 CREATE FUNCTION gist_page_items_bytea(IN page bytea,
22 OUT itemoffset smallint,
28 AS 'MODULE_PATHNAME', 'gist_page_items_bytea'
29 LANGUAGE C STRICT PARALLEL SAFE;
34 CREATE FUNCTION gist_page_items(IN page bytea,
35 IN index_oid regclass,
36 OUT itemoffset smallint,
42 AS 'MODULE_PATHNAME', 'gist_page_items'
43 LANGUAGE C STRICT PARALLEL SAFE;
48 DROP FUNCTION get_raw_page(text, int4);
49 CREATE FUNCTION get_raw_page(text, int8)
51 AS 'MODULE_PATHNAME', 'get_raw_page_1_9'
52 LANGUAGE C STRICT PARALLEL SAFE;
54 DROP FUNCTION get_raw_page(text, text, int4);
55 CREATE FUNCTION get_raw_page(text, text, int8)
57 AS 'MODULE_PATHNAME', 'get_raw_page_fork_1_9'
58 LANGUAGE C STRICT PARALLEL SAFE;
63 DROP FUNCTION page_checksum(IN page bytea, IN blkno int4);
64 CREATE FUNCTION page_checksum(IN page bytea, IN blkno int8)
66 AS 'MODULE_PATHNAME', 'page_checksum_1_9'
67 LANGUAGE C STRICT PARALLEL SAFE;
72 DROP FUNCTION bt_metap(text);
73 CREATE FUNCTION bt_metap(IN relname text,
80 OUT last_cleanup_num_delpages int8,
81 OUT last_cleanup_num_tuples float8,
82 OUT allequalimage boolean)
83 AS 'MODULE_PATHNAME', 'bt_metap'
84 LANGUAGE C STRICT PARALLEL SAFE;
89 DROP FUNCTION bt_page_stats(text, int4);
90 CREATE FUNCTION bt_page_stats(IN relname text, IN blkno int8,
95 OUT avg_item_size int4,
102 AS 'MODULE_PATHNAME', 'bt_page_stats_1_9'
103 LANGUAGE C STRICT PARALLEL SAFE;
108 DROP FUNCTION bt_page_items(text, int4);
109 CREATE FUNCTION bt_page_items(IN relname text, IN blkno int8,
110 OUT itemoffset smallint,
112 OUT itemlen smallint,
120 AS 'MODULE_PATHNAME', 'bt_page_items_1_9'
121 LANGUAGE C STRICT PARALLEL SAFE;
126 DROP FUNCTION brin_page_items(IN page bytea, IN index_oid regclass);
127 CREATE FUNCTION brin_page_items(IN page bytea, IN index_oid regclass,
133 OUT placeholder bool,
136 AS 'MODULE_PATHNAME', 'brin_page_items'
137 LANGUAGE C STRICT PARALLEL SAFE;