| 1 |
/* contrib/amcheck/amcheck--1.0.sql */ |
| 2 |
|
| 3 |
-- complain if script is sourced in psql, rather than via CREATE EXTENSION |
| 4 |
\echo Use "CREATE EXTENSION amcheck" to load this file. \quit |
| 5 |
|
| 6 |
-- |
| 7 |
-- bt_index_check() |
| 8 |
-- |
| 9 |
CREATE FUNCTION bt_index_check(index regclass) |
| 10 |
RETURNS VOID |
| 11 |
AS 'MODULE_PATHNAME', 'bt_index_check' |
| 12 |
LANGUAGE C STRICT PARALLEL RESTRICTED; |
| 13 |
|
| 14 |
-- |
| 15 |
-- bt_index_parent_check() |
| 16 |
-- |
| 17 |
CREATE FUNCTION bt_index_parent_check(index regclass) |
| 18 |
RETURNS VOID |
| 19 |
AS 'MODULE_PATHNAME', 'bt_index_parent_check' |
| 20 |
LANGUAGE C STRICT PARALLEL RESTRICTED; |
| 21 |
|
| 22 |
-- Don't want these to be available to public |
| 23 |
REVOKE ALL ON FUNCTION bt_index_check(regclass) FROM PUBLIC; |
| 24 |
REVOKE ALL ON FUNCTION bt_index_parent_check(regclass) FROM PUBLIC; |