2007-11-12 23:24:29 -05:00
|
|
|
/* $PostgreSQL: pgsql/contrib/lo/lo.sql.in,v 1.15 2007/11/13 04:24:28 momjian Exp $ */
|
|
|
|
|
|
2002-10-18 14:41:22 -04:00
|
|
|
-- Adjust this setting to control where the objects get created.
|
|
|
|
|
SET search_path = public;
|
|
|
|
|
|
2005-06-22 20:06:37 -04:00
|
|
|
--
|
|
|
|
|
-- Create the data type ... now just a domain over OID
|
|
|
|
|
--
|
1998-06-16 03:07:11 -04:00
|
|
|
|
2005-06-22 20:06:37 -04:00
|
|
|
CREATE DOMAIN lo AS pg_catalog.oid;
|
2000-11-21 16:51:58 -05:00
|
|
|
|
2005-06-22 20:06:37 -04:00
|
|
|
--
|
|
|
|
|
-- For backwards compatibility, define a function named lo_oid.
|
|
|
|
|
--
|
|
|
|
|
-- The other functions that formerly existed are not needed because
|
|
|
|
|
-- the implicit casts between a domain and its underlying type handle them.
|
|
|
|
|
--
|
2007-11-10 22:25:35 -05:00
|
|
|
CREATE OR REPLACE FUNCTION lo_oid(lo) RETURNS pg_catalog.oid AS
|
2005-06-22 20:06:37 -04:00
|
|
|
'SELECT $1::pg_catalog.oid' LANGUAGE SQL STRICT IMMUTABLE;
|
1998-06-16 03:07:11 -04:00
|
|
|
|
|
|
|
|
-- This is used in triggers
|
2007-11-10 22:25:35 -05:00
|
|
|
CREATE OR REPLACE FUNCTION lo_manage()
|
2005-06-22 20:06:37 -04:00
|
|
|
RETURNS pg_catalog.trigger
|
2002-10-18 14:41:22 -04:00
|
|
|
AS 'MODULE_PATHNAME'
|
2005-01-29 17:35:02 -05:00
|
|
|
LANGUAGE C;
|