1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Add new contrib function pgrowlocks. See README.pgrowlocks for more details.

This commit is contained in:
Tatsuo Ishii
2006-04-23 01:12:58 +00:00
parent 044c3b4615
commit 66126f9687
5 changed files with 488 additions and 0 deletions

View File

@ -0,0 +1,16 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
CREATE TYPE pgrowlocks_type AS (
locked_row TID, -- row TID
lock_type TEXT, -- lock type
locker XID, -- locking XID
multi bool, -- multi XID?
xids xid[], -- multi XIDs
pids INTEGER[] -- locker's process id
);
CREATE OR REPLACE FUNCTION pgrowlocks(text)
RETURNS setof pgrowlocks_type
AS 'MODULE_PATHNAME', 'pgrowlocks'
LANGUAGE 'C' STRICT;