mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-19 20:00:51 +08:00
contrib/lo: Use SQL-standard function bodies
Author: Ronan Dunklau Discussion: https://postgr.es/m/3316564.aeNJFYEL58@aivenlaptop
This commit is contained in:
parent
93f9b4a93f
commit
13e3796c90
@ -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
|
||||
|
8
contrib/lo/lo--1.1--1.2.sql
Normal file
8
contrib/lo/lo--1.1--1.2.sql
Normal 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);
|
@ -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
|
||||
|
@ -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,
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user