aboutsummaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/pgcrypto--1.0.sql
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pgcrypto/pgcrypto--1.0.sql')
-rw-r--r--contrib/pgcrypto/pgcrypto--1.0.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/pgcrypto/pgcrypto--1.0.sql b/contrib/pgcrypto/pgcrypto--1.0.sql
index 52be0950ce6..d95a51bc406 100644
--- a/contrib/pgcrypto/pgcrypto--1.0.sql
+++ b/contrib/pgcrypto/pgcrypto--1.0.sql
@@ -1,5 +1,8 @@
/* contrib/pgcrypto/pgcrypto--1.0.sql */
+-- complain if script is sourced in psql, rather than via CREATE EXTENSION
+\echo Use "CREATE EXTENSION pgcrypto" to load this file. \quit
+
CREATE FUNCTION digest(text, text)
RETURNS bytea
AS 'MODULE_PATHNAME', 'pg_digest'