Commit e7880e5d authored by Robert Haas's avatar Robert Haas

Update lo extension for parallel query.

The lo_oid function provided by this extension is PARALLEL SAFE.

Andreas Karlsson
parent b79b8d8f
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
MODULES = lo MODULES = lo
EXTENSION = lo EXTENSION = lo
DATA = lo--1.0.sql lo--unpackaged--1.0.sql DATA = lo--1.1.sql lo--1.0--1.1.sql lo--unpackaged--1.0.sql
PGFILEDESC = "lo - management for large objects" PGFILEDESC = "lo - management for large objects"
ifdef USE_PGXS ifdef USE_PGXS
......
/* contrib/lo/lo--1.0--1.1.sql */
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use "ALTER EXTENSION lo UPDATE TO '1.1'" to load this file. \quit
ALTER FUNCTION lo_oid(lo) PARALLEL SAFE;
/* contrib/lo/lo--1.0.sql */ /* contrib/lo/lo--1.1.sql */
-- complain if script is sourced in psql, rather than via CREATE EXTENSION -- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION lo" to load this file. \quit \echo Use "CREATE EXTENSION lo" to load this file. \quit
...@@ -16,7 +16,7 @@ CREATE DOMAIN lo AS pg_catalog.oid; ...@@ -16,7 +16,7 @@ CREATE DOMAIN lo AS pg_catalog.oid;
-- the implicit casts between a domain and its underlying type handle them. -- the implicit casts between a domain and its underlying type handle them.
-- --
CREATE FUNCTION lo_oid(lo) RETURNS pg_catalog.oid AS CREATE FUNCTION lo_oid(lo) RETURNS pg_catalog.oid AS
'SELECT $1::pg_catalog.oid' LANGUAGE SQL STRICT IMMUTABLE; 'SELECT $1::pg_catalog.oid' LANGUAGE SQL STRICT IMMUTABLE PARALLEL SAFE;
-- This is used in triggers -- This is used in triggers
CREATE FUNCTION lo_manage() CREATE FUNCTION lo_manage()
......
# lo extension # lo extension
comment = 'Large Object maintenance' comment = 'Large Object maintenance'
default_version = '1.0' default_version = '1.1'
module_pathname = '$libdir/lo' module_pathname = '$libdir/lo'
relocatable = true relocatable = true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment