aboutsummaryrefslogtreecommitdiff
path: root/contrib/pg_buffercache/pg_buffercache--1.0.sql
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pg_buffercache/pg_buffercache--1.0.sql')
-rw-r--r--contrib/pg_buffercache/pg_buffercache--1.0.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/pg_buffercache/pg_buffercache--1.0.sql b/contrib/pg_buffercache/pg_buffercache--1.0.sql
index 9407d214108..4ca4c44256c 100644
--- a/contrib/pg_buffercache/pg_buffercache--1.0.sql
+++ b/contrib/pg_buffercache/pg_buffercache--1.0.sql
@@ -1,5 +1,8 @@
/* contrib/pg_buffercache/pg_buffercache--1.0.sql */
+-- complain if script is sourced in psql, rather than via CREATE EXTENSION
+\echo Use "CREATE EXTENSION pg_buffercache" to load this file. \quit
+
-- Register the function.
CREATE FUNCTION pg_buffercache_pages()
RETURNS SETOF RECORD