diff options
Diffstat (limited to 'contrib/pgstattuple/pgstattuple--1.0.sql')
-rw-r--r-- | contrib/pgstattuple/pgstattuple--1.0.sql | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/pgstattuple/pgstattuple--1.0.sql b/contrib/pgstattuple/pgstattuple--1.0.sql index 83445ec4aee..f7e03083ad7 100644 --- a/contrib/pgstattuple/pgstattuple--1.0.sql +++ b/contrib/pgstattuple/pgstattuple--1.0.sql @@ -1,5 +1,8 @@ /* contrib/pgstattuple/pgstattuple--1.0.sql */ +-- complain if script is sourced in psql, rather than via CREATE EXTENSION +\echo Use "CREATE EXTENSION pgstattuple" to load this file. \quit + CREATE FUNCTION pgstattuple(IN relname text, OUT table_len BIGINT, -- physical table length in bytes OUT tuple_count BIGINT, -- number of live tuples |