Debian Codegraph @

contrib/lo/lo--1.1.sql

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