1 /* contrib/amcheck/amcheck--1.0--1.1.sql */
3 -- complain if script is sourced in psql, rather than via CREATE EXTENSION
4 \echo Use "ALTER EXTENSION amcheck UPDATE TO '1.1'" to load this file. \quit
6 -- In order to avoid issues with dependencies when updating amcheck to 1.1,
7 -- create new, overloaded versions of the 1.0 functions
12 CREATE FUNCTION bt_index_check(index regclass,
13 heapallindexed boolean)
15 AS 'MODULE_PATHNAME', 'bt_index_check'
16 LANGUAGE C STRICT PARALLEL RESTRICTED;
19 -- bt_index_parent_check()
21 CREATE FUNCTION bt_index_parent_check(index regclass,
22 heapallindexed boolean)
24 AS 'MODULE_PATHNAME', 'bt_index_parent_check'
25 LANGUAGE C STRICT PARALLEL RESTRICTED;
27 -- Don't want these to be available to public
28 REVOKE ALL ON FUNCTION bt_index_check(regclass, boolean) FROM PUBLIC;
29 REVOKE ALL ON FUNCTION bt_index_parent_check(regclass, boolean) FROM PUBLIC;