Commit 9164deea authored by Robert Haas's avatar Robert Haas

Update pgrowlocks extension for parallel query.

The pgrowlocks function provided by this extension is PARALLEL SAFE.

Andreas Karlsson
parent 6b3586ca
...@@ -4,7 +4,8 @@ MODULE_big = pgrowlocks ...@@ -4,7 +4,8 @@ MODULE_big = pgrowlocks
OBJS = pgrowlocks.o $(WIN32RES) OBJS = pgrowlocks.o $(WIN32RES)
EXTENSION = pgrowlocks 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" PGFILEDESC = "pgrowlocks - display row locking information"
ifdef USE_PGXS ifdef USE_PGXS
......
/* 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;
...@@ -12,4 +12,4 @@ CREATE FUNCTION pgrowlocks(IN relname text, ...@@ -12,4 +12,4 @@ CREATE FUNCTION pgrowlocks(IN relname text,
OUT pids INTEGER[]) -- locker's process id OUT pids INTEGER[]) -- locker's process id
RETURNS SETOF record RETURNS SETOF record
AS 'MODULE_PATHNAME', 'pgrowlocks' AS 'MODULE_PATHNAME', 'pgrowlocks'
LANGUAGE C STRICT; LANGUAGE C STRICT PARALLEL SAFE;
# pgrowlocks extension # pgrowlocks extension
comment = 'show row-level locking information' comment = 'show row-level locking information'
default_version = '1.1' default_version = '1.2'
module_pathname = '$libdir/pgrowlocks' module_pathname = '$libdir/pgrowlocks'
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