Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 13e3796

Browse files
committed
contrib/lo: Use SQL-standard function bodies
Author: Ronan Dunklau Discussion: https://postgr.es/m/3316564.aeNJFYEL58@aivenlaptop
1 parent 93f9b4a commit 13e3796

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

contrib/lo/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
MODULES = lo
44

55
EXTENSION = lo
6-
DATA = lo--1.1.sql lo--1.0--1.1.sql
6+
DATA = lo--1.1.sql lo--1.0--1.1.sql lo--1.1--1.2.sql
77
PGFILEDESC = "lo - management for large objects"
88

99
REGRESS = lo

contrib/lo/lo--1.1--1.2.sql

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

contrib/lo/lo.control

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# lo extension
22
comment = 'Large Object maintenance'
3-
default_version = '1.1'
3+
default_version = '1.2'
44
module_pathname = '$libdir/lo'
55
relocatable = true
66
trusted = true

contrib/lo/meson.build

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ install_data(
2020
'lo.control',
2121
'lo--1.0--1.1.sql',
2222
'lo--1.1.sql',
23+
'lo--1.1--1.2.sql',
2324
kwargs: contrib_data_args,
2425
)
2526

0 commit comments

Comments
 (0)