diff options
Diffstat (limited to 'contrib/lo')
-rw-r--r-- | contrib/lo/lo--1.0.sql | 3 | ||||
-rw-r--r-- | contrib/lo/lo--unpackaged--1.0.sql | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/contrib/lo/lo--1.0.sql b/contrib/lo/lo--1.0.sql index 4b9a7dee32..cb350e0b8a 100644 --- a/contrib/lo/lo--1.0.sql +++ b/contrib/lo/lo--1.0.sql @@ -1,5 +1,8 @@ /* contrib/lo/lo--1.0.sql */ +-- complain if script is sourced in psql, rather than via CREATE EXTENSION +\echo Use "CREATE EXTENSION lo" to load this file. \quit + -- -- Create the data type ... now just a domain over OID -- diff --git a/contrib/lo/lo--unpackaged--1.0.sql b/contrib/lo/lo--unpackaged--1.0.sql index 54de61686e..053185ba1d 100644 --- a/contrib/lo/lo--unpackaged--1.0.sql +++ b/contrib/lo/lo--unpackaged--1.0.sql @@ -1,5 +1,8 @@ /* contrib/lo/lo--unpackaged--1.0.sql */ +-- complain if script is sourced in psql, rather than via CREATE EXTENSION +\echo Use "CREATE EXTENSION lo" to load this file. \quit + ALTER EXTENSION lo ADD domain lo; ALTER EXTENSION lo ADD function lo_oid(lo); ALTER EXTENSION lo ADD function lo_manage(); |