Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9164dee

Browse files
committed
Update pgrowlocks extension for parallel query.
The pgrowlocks function provided by this extension is PARALLEL SAFE. Andreas Karlsson
1 parent 6b3586c commit 9164dee

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

contrib/pgrowlocks/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ MODULE_big = pgrowlocks
44
OBJS = pgrowlocks.o $(WIN32RES)
55

66
EXTENSION = pgrowlocks
7-
DATA = pgrowlocks--1.1.sql pgrowlocks--1.0--1.1.sql pgrowlocks--unpackaged--1.0.sql
7+
DATA = pgrowlocks--1.2.sql pgrowlocks--1.1--1.2.sql pgrowlocks--1.0--1.1.sql \
8+
pgrowlocks--unpackaged--1.0.sql
89
PGFILEDESC = "pgrowlocks - display row locking information"
910

1011
ifdef USE_PGXS
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* contrib/pgrowlocks/pgrowlocks--1.1--1.2.sql */
2+
3+
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
4+
\echo Use "ALTER EXTENSION pgrowlocks UPDATE TO '1.2'" to load this file. \quit
5+
6+
ALTER FUNCTION pgrowlocks(text) PARALLEL SAFE;

contrib/pgrowlocks/pgrowlocks--1.1.sql renamed to contrib/pgrowlocks/pgrowlocks--1.2.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ CREATE FUNCTION pgrowlocks(IN relname text,
1212
OUT pids INTEGER[]) -- locker's process id
1313
RETURNS SETOF record
1414
AS 'MODULE_PATHNAME', 'pgrowlocks'
15-
LANGUAGE C STRICT;
15+
LANGUAGE C STRICT PARALLEL SAFE;

contrib/pgrowlocks/pgrowlocks.control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# pgrowlocks extension
22
comment = 'show row-level locking information'
3-
default_version = '1.1'
3+
default_version = '1.2'
44
module_pathname = '$libdir/pgrowlocks'
55
relocatable = true

0 commit comments

Comments
 (0)