contrib/lo: Use SQL-standard function bodies

Author: Ronan Dunklau
Discussion: https://postgr.es/m/3316564.aeNJFYEL58@aivenlaptop
This commit is contained in:
Michael Paquier 2024-11-14 13:23:11 +09:00
parent 93f9b4a93f
commit 13e3796c90
4 changed files with 11 additions and 2 deletions

View File

@ -3,7 +3,7 @@
MODULES = lo
EXTENSION = lo
DATA = lo--1.1.sql lo--1.0--1.1.sql
DATA = lo--1.1.sql lo--1.0--1.1.sql lo--1.1--1.2.sql
PGFILEDESC = "lo - management for large objects"
REGRESS = lo

View File

@ -0,0 +1,8 @@
/* contrib/lo/lo--1.1--1.2.sql */
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use "ALTER EXTENSION lo UPDATE TO '1.2'" to load this file. \quit
CREATE OR REPLACE FUNCTION lo_oid(lo) RETURNS pg_catalog.oid
LANGUAGE SQL STRICT IMMUTABLE PARALLEL SAFE
RETURN (SELECT $1::pg_catalog.oid);

View File

@ -1,6 +1,6 @@
# lo extension
comment = 'Large Object maintenance'
default_version = '1.1'
default_version = '1.2'
module_pathname = '$libdir/lo'
relocatable = true
trusted = true

View File

@ -20,6 +20,7 @@ install_data(
'lo.control',
'lo--1.0--1.1.sql',
'lo--1.1.sql',
'lo--1.1--1.2.sql',
kwargs: contrib_data_args,
)