The pgrowlocks function provided by this extension is PARALLEL SAFE.
Andreas Karlsson
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
--- /dev/null
+/* 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;
OUT pids INTEGER[]) -- locker's process id
RETURNS SETOF record
AS 'MODULE_PATHNAME', 'pgrowlocks'
-LANGUAGE C STRICT;
+LANGUAGE C STRICT PARALLEL SAFE;
# pgrowlocks extension
comment = 'show row-level locking information'
-default_version = '1.1'
+default_version = '1.2'
module_pathname = '$libdir/pgrowlocks'
relocatable = true