Pg_lockdiag scope aims to bring up a comprehensive and inteligent way of gathering lock information and status, given a single query or activity on a server, without lacking on performance.
The pglockdiagproject is a PostgreSQL Community project that is a part of the pgFoundry.
The pgFoundry page for the project is at http://pgfoundry.org/projects/pglockdiag, where you can find downloads, documentation, bug reports, mailing lists, and a whole lot more.