Skip to content

Commit e7880e5

Browse files
committed
Update lo extension for parallel query.
The lo_oid function provided by this extension is PARALLEL SAFE. Andreas Karlsson
1 parent b79b8d8 commit e7880e5

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
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.0.sql lo--unpackaged--1.0.sql
6+
DATA = lo--1.1.sql lo--1.0--1.1.sql lo--unpackaged--1.0.sql
77
PGFILEDESC = "lo - management for large objects"
88

99
ifdef USE_PGXS

contrib/lo/lo--1.0--1.1.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* contrib/lo/lo--1.0--1.1.sql */
2+
3+
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
4+
\echo Use "ALTER EXTENSION lo UPDATE TO '1.1'" to load this file. \quit
5+
6+
ALTER FUNCTION lo_oid(lo) PARALLEL SAFE;

contrib/lo/lo--1.0.sql renamed to contrib/lo/lo--1.1.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* contrib/lo/lo--1.0.sql */
1+
/* contrib/lo/lo--1.1.sql */
22

33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
44
\echo Use "CREATE EXTENSION lo" to load this file. \quit
@@ -16,7 +16,7 @@ CREATE DOMAIN lo AS pg_catalog.oid;
1616
-- the implicit casts between a domain and its underlying type handle them.
1717
--
1818
CREATE FUNCTION lo_oid(lo) RETURNS pg_catalog.oid AS
19-
'SELECT $1::pg_catalog.oid' LANGUAGE SQL STRICT IMMUTABLE;
19+
'SELECT $1::pg_catalog.oid' LANGUAGE SQL STRICT IMMUTABLE PARALLEL SAFE;
2020

2121
-- This is used in triggers
2222
CREATE FUNCTION lo_manage()

contrib/lo/lo.control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# lo extension
22
comment = 'Large Object maintenance'
3-
default_version = '1.0'
3+
default_version = '1.1'
44
module_pathname = '$libdir/lo'
55
relocatable = true

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