]> granicus.if.org Git - postgresql/commitdiff
Update pgrowlocks extension for parallel query.
authorRobert Haas <rhaas@postgresql.org>
Thu, 9 Jun 2016 21:18:20 +0000 (17:18 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 9 Jun 2016 21:35:53 +0000 (17:35 -0400)
The pgrowlocks function provided by this extension is PARALLEL SAFE.

Andreas Karlsson

contrib/pgrowlocks/Makefile
contrib/pgrowlocks/pgrowlocks--1.1--1.2.sql [new file with mode: 0644]
contrib/pgrowlocks/pgrowlocks--1.2.sql [moved from contrib/pgrowlocks/pgrowlocks--1.1.sql with 94% similarity]
contrib/pgrowlocks/pgrowlocks.control

index 059ea0528b7b3d21b2829ac9b2ab2a6510cadfa4..5d611665e9039ce229cdee7fdb4c4f6e4324814a 100644 (file)
@@ -4,7 +4,8 @@ MODULE_big      = pgrowlocks
 OBJS           = pgrowlocks.o $(WIN32RES)
 
 EXTENSION = pgrowlocks
-DATA = pgrowlocks--1.1.sql pgrowlocks--1.0--1.1.sql pgrowlocks--unpackaged--1.0.sql
+DATA = pgrowlocks--1.2.sql pgrowlocks--1.1--1.2.sql pgrowlocks--1.0--1.1.sql \
+       pgrowlocks--unpackaged--1.0.sql
 PGFILEDESC = "pgrowlocks - display row locking information"
 
 ifdef USE_PGXS
diff --git a/contrib/pgrowlocks/pgrowlocks--1.1--1.2.sql b/contrib/pgrowlocks/pgrowlocks--1.1--1.2.sql
new file mode 100644 (file)
index 0000000..94ebf54
--- /dev/null
@@ -0,0 +1,6 @@
+/* contrib/pgrowlocks/pgrowlocks--1.1--1.2.sql */
+
+-- complain if script is sourced in psql, rather than via ALTER EXTENSION
+\echo Use "ALTER EXTENSION pgrowlocks UPDATE TO '1.2'" to load this file. \quit
+
+ALTER FUNCTION pgrowlocks(text) PARALLEL SAFE;
similarity index 94%
rename from contrib/pgrowlocks/pgrowlocks--1.1.sql
rename to contrib/pgrowlocks/pgrowlocks--1.2.sql
index 29079f49231739fbd1970f900492021ed4df6b3c..58df728c07eb4ff7a17430a52d229452912a555a 100644 (file)
@@ -12,4 +12,4 @@ CREATE FUNCTION pgrowlocks(IN relname text,
     OUT pids INTEGER[])                -- locker's process id
 RETURNS SETOF record
 AS 'MODULE_PATHNAME', 'pgrowlocks'
-LANGUAGE C STRICT;
+LANGUAGE C STRICT PARALLEL SAFE;
index dfa587d76180d829e308111489b0097b58e96e85..9f92b2f1f450adc5b4d32721d1b411ddca7048fe 100644 (file)
@@ -1,5 +1,5 @@
 # pgrowlocks extension
 comment = 'show row-level locking information'
-default_version = '1.1'
+default_version = '1.2'
 module_pathname = '$libdir/pgrowlocks'
 relocatable = true