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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 8 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy