1 /* contrib/pgrowlocks/pgrowlocks--1.0--1.1.sql */
3 -- complain if script is sourced in psql, rather than via ALTER EXTENSION
4 \echo Use "ALTER EXTENSION pgrowlocks UPDATE TO '1.1'" to load this file. \quit
6 ALTER EXTENSION pgrowlocks DROP FUNCTION pgrowlocks(text);
7 DROP FUNCTION pgrowlocks(text);
8 CREATE FUNCTION pgrowlocks(IN relname text,
9 OUT locked_row TID, -- row TID
10 OUT locker XID, -- locking XID
11 OUT multi bool, -- multi XID?
12 OUT xids xid[], -- multi XIDs
13 OUT modes text[], -- multi XID statuses
14 OUT pids INTEGER[]) -- locker's process id
16 AS 'MODULE_PATHNAME', 'pgrowlocks'