Debian Codegraph @

contrib/amcheck/amcheck--1.1--1.2.sql

raw
1 /* contrib/amcheck/amcheck--1.1--1.2.sql */
2
3 -- complain if script is sourced in psql, rather than via CREATE EXTENSION
4 \echo Use "ALTER EXTENSION amcheck UPDATE TO '1.2'" to load this file. \quit
5
6 -- In order to avoid issues with dependencies when updating amcheck to 1.2,
7 -- create new, overloaded version of the 1.1 function signature
8
9 --
10 -- bt_index_parent_check()
11 --
12 CREATE FUNCTION bt_index_parent_check(index regclass,
13 heapallindexed boolean, rootdescend boolean)
14 RETURNS VOID
15 AS 'MODULE_PATHNAME', 'bt_index_parent_check'
16 LANGUAGE C STRICT PARALLEL RESTRICTED;
17
18 -- Don't want this to be available to public
19 REVOKE ALL ON FUNCTION bt_index_parent_check(regclass, boolean, boolean) FROM PUBLIC;