~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to contrib/pgrowlocks/pgrowlocks--1.0.sql

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* contrib/pgrowlocks/pgrowlocks--1.0.sql */
 
2
 
 
3
CREATE FUNCTION pgrowlocks(IN relname text,
 
4
    OUT locked_row TID,         -- row TID
 
5
    OUT lock_type TEXT,         -- lock type
 
6
    OUT locker XID,             -- locking XID
 
7
    OUT multi bool,             -- multi XID?
 
8
    OUT xids xid[],             -- multi XIDs
 
9
    OUT pids INTEGER[])         -- locker's process id
 
10
RETURNS SETOF record
 
11
AS 'MODULE_PATHNAME', 'pgrowlocks'
 
12
LANGUAGE C STRICT;