summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas2016-06-07 15:26:01 +0000
committerRobert Haas2016-06-07 15:26:42 +0000
commite7880e5d39d098d40717d23c9162b8e52294792a (patch)
tree6a5f293688ae7ea65f00854dea7b4ebd96f61bcf
parentb79b8d8f55522e7bc299efc4a41f02accdeaccbe (diff)
Update lo extension for parallel query.
The lo_oid function provided by this extension is PARALLEL SAFE. Andreas Karlsson
-rw-r--r--contrib/lo/Makefile2
-rw-r--r--contrib/lo/lo--1.0--1.1.sql6
-rw-r--r--contrib/lo/lo--1.1.sql (renamed from contrib/lo/lo--1.0.sql)4
-rw-r--r--contrib/lo/lo.control2
4 files changed, 10 insertions, 4 deletions
diff --git a/contrib/lo/Makefile b/contrib/lo/Makefile
index b956aa4fa1..71f0cb0d24 100644
--- a/contrib/lo/Makefile
+++ b/contrib/lo/Makefile
@@ -3,7 +3,7 @@
MODULES = 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"
ifdef USE_PGXS
diff --git a/contrib/lo/lo--1.0--1.1.sql b/contrib/lo/lo--1.0--1.1.sql
new file mode 100644
index 0000000000..10a4ea2937
--- /dev/null
+++ b/contrib/lo/lo--1.0--1.1.sql
@@ -0,0 +1,6 @@
+/* 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;
diff --git a/contrib/lo/lo--1.0.sql b/contrib/lo/lo--1.1.sql
index cb350e0b8a..c817cb484f 100644
--- a/contrib/lo/lo--1.0.sql
+++ b/contrib/lo/lo--1.1.sql
@@ -1,4 +1,4 @@
-/* contrib/lo/lo--1.0.sql */
+/* contrib/lo/lo--1.1.sql */
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION lo" to load this file. \quit
@@ -16,7 +16,7 @@ CREATE DOMAIN lo AS pg_catalog.oid;
-- the implicit casts between a domain and its underlying type handle them.
--
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
CREATE FUNCTION lo_manage()
diff --git a/contrib/lo/lo.control b/contrib/lo/lo.control
index 849dfb5803..820326c798 100644
--- a/contrib/lo/lo.control
+++ b/contrib/lo/lo.control
@@ -1,5 +1,5 @@
# lo extension
comment = 'Large Object maintenance'
-default_version = '1.0'
+default_version = '1.1'
module_pathname = '$libdir/lo'
relocatable = true