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