Debian Codegraph @

contrib/amcheck/amcheck--1.0--1.1.sql

raw
1 /* contrib/amcheck/amcheck--1.0--1.1.sql */
2
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
5
6 -- In order to avoid issues with dependencies when updating amcheck to 1.1,
7 -- create new, overloaded versions of the 1.0 functions
8
9 --
10 -- bt_index_check()
11 --
12 CREATE FUNCTION bt_index_check(index regclass,
13 heapallindexed boolean)
14 RETURNS VOID
15 AS 'MODULE_PATHNAME', 'bt_index_check'
16 LANGUAGE C STRICT PARALLEL RESTRICTED;
17
18 --
19 -- bt_index_parent_check()
20 --
21 CREATE FUNCTION bt_index_parent_check(index regclass,
22 heapallindexed boolean)
23 RETURNS VOID
24 AS 'MODULE_PATHNAME', 'bt_index_parent_check'
25 LANGUAGE C STRICT PARALLEL RESTRICTED;
26
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;