1 /* contrib/lo/lo--1.1.sql */
3 -- complain if script is sourced in psql, rather than via CREATE EXTENSION
4 \echo Use "CREATE EXTENSION lo" to load this file. \quit
7 -- Create the data type ... now just a domain over OID
10 CREATE DOMAIN lo AS pg_catalog.oid;
13 -- For backwards compatibility, define a function named lo_oid.
15 -- The other functions that formerly existed are not needed because
16 -- the implicit casts between a domain and its underlying type handle them.
18 CREATE FUNCTION lo_oid(lo) RETURNS pg_catalog.oid AS
19 'SELECT $1::pg_catalog.oid' LANGUAGE SQL STRICT IMMUTABLE PARALLEL SAFE;
21 -- This is used in triggers
22 CREATE FUNCTION lo_manage()
23 RETURNS pg_catalog.trigger