mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
17 lines
444 B
MySQL
17 lines
444 B
MySQL
-- 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;
|