1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Extend the pg_locks system view so that it can fully display all lock

types, as per recent discussion.
This commit is contained in:
Tom Lane
2005-05-17 21:46:11 +00:00
parent 4e7d6f5349
commit a9c4c9cd52
7 changed files with 207 additions and 52 deletions

View File

@ -19,9 +19,9 @@
#define SET_LOCKTAG_USERLOCK(locktag,id1,id2) \
((locktag).locktag_field1 = (id1), \
(locktag).locktag_field2 = (id2), \
(locktag).locktag_field3 = MyDatabaseId, \
((locktag).locktag_field1 = MyDatabaseId, \
(locktag).locktag_field2 = (id1), \
(locktag).locktag_field3 = (id2), \
(locktag).locktag_field4 = 0, \
(locktag).locktag_type = LOCKTAG_USERLOCK)