mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-18 09:03:24 +02:00
This isn't fully tested as yet, in particular I'm not sure that the "foo--unpackaged--1.0.sql" scripts are OK. But it's time to get some buildfarm cycles on it. sepgsql is not converted to an extension, mainly because it seems to require a very nonstandard installation process. Dimitri Fontaine and Tom Lane
13 lines
404 B
SQL
13 lines
404 B
SQL
/* contrib/pgrowlocks/pgrowlocks--1.0.sql */
|
|
|
|
CREATE OR REPLACE FUNCTION pgrowlocks(IN relname text,
|
|
OUT locked_row TID, -- row TID
|
|
OUT lock_type TEXT, -- lock type
|
|
OUT locker XID, -- locking XID
|
|
OUT multi bool, -- multi XID?
|
|
OUT xids xid[], -- multi XIDs
|
|
OUT pids INTEGER[]) -- locker's process id
|
|
RETURNS SETOF record
|
|
AS 'MODULE_PATHNAME', 'pgrowlocks'
|
|
LANGUAGE C STRICT;
|