mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-27 07:21:09 +08:00
ca3b37487b
Backpatch-through: 9.5
19 lines
608 B
SQL
19 lines
608 B
SQL
/* contrib/pg_surgery/pg_surgery--1.0.sql */
|
|
|
|
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
|
|
\echo Use "CREATE EXTENSION pg_surgery" to load this file. \quit
|
|
|
|
CREATE FUNCTION heap_force_kill(reloid regclass, tids tid[])
|
|
RETURNS VOID
|
|
AS 'MODULE_PATHNAME', 'heap_force_kill'
|
|
LANGUAGE C STRICT;
|
|
|
|
REVOKE EXECUTE ON FUNCTION heap_force_kill(regclass, tid[]) FROM PUBLIC;
|
|
|
|
CREATE FUNCTION heap_force_freeze(reloid regclass, tids tid[])
|
|
RETURNS VOID
|
|
AS 'MODULE_PATHNAME', 'heap_force_freeze'
|
|
LANGUAGE C STRICT;
|
|
|
|
REVOKE EXECUTE ON FUNCTION heap_force_freeze(regclass, tid[]) FROM PUBLIC;
|