codekingpro/portable-devtools
114k
1/* contrib/amcheck/amcheck--1.0--1.1.sql */2 3-- complain if script is sourced in psql, rather than via CREATE EXTENSION4\echo Use "ALTER EXTENSION amcheck UPDATE TO '1.1'" to load this file. \quit5 6-- In order to avoid issues with dependencies when updating amcheck to 1.1,7-- create new, overloaded versions of the 1.0 functions8 9--10-- bt_index_check()11--12CREATE FUNCTION bt_index_check(index regclass,13 heapallindexed boolean)14RETURNS VOID15AS 'MODULE_PATHNAME', 'bt_index_check'16LANGUAGE C STRICT PARALLEL RESTRICTED;17 18--19-- bt_index_parent_check()20--21CREATE FUNCTION bt_index_parent_check(index regclass,22 heapallindexed boolean)23RETURNS VOID24AS 'MODULE_PATHNAME', 'bt_index_parent_check'25LANGUAGE C STRICT PARALLEL RESTRICTED;26 27-- Don't want these to be available to public28REVOKE ALL ON FUNCTION bt_index_check(regclass, boolean) FROM PUBLIC;29REVOKE ALL ON FUNCTION bt_index_parent_check(regclass, boolean) FROM PUBLIC;30 