@@ -63,7 +63,7 @@ pgrowlocks(text) returns setof record
63
63
<entry>Transaction IDs of lockers (more than one if multitransaction)</entry>
64
64
</row>
65
65
<row>
66
- <entry><structfield>lock_type </structfield></entry>
66
+ <entry><structfield>modes </structfield></entry>
67
67
<entry><type>text[]</type></entry>
68
68
<entry>Lock mode of lockers (more than one if multitransaction),
69
69
an array of <literal>Key Share</>, <literal>Share</>,
@@ -121,14 +121,14 @@ SELECT * FROM accounts AS a, pgrowlocks('accounts') AS p
121
121
<sect2>
122
122
<title>Sample Output</title>
123
123
124
- <screen>
125
- test =# SELECT * FROM pgrowlocks('t1');
126
- locked_row | lock_type | locker | multi | xids | pids
127
- ------------+----------- +-------- +-------+-----------+ ------- --------
128
- (0,1) | Shared | 19 | t | {804,805 } | {29066,29068 }
129
- (0,2) | Shared | 19 | t | {804,805 } | {29066,29068 }
130
- (0,3) | Exclusive | 804 | f | {804} | {29066 }
131
- (0,4) | Exclusive | 804 | f | {804} | {29066 }
124
+ <screen>
125
+ =# SELECT * FROM pgrowlocks('t1');
126
+ locked_row | locker | multi | xids | modes | pids
127
+ ------------+--------+-------+-------+----------------+ --------
128
+ (0,1) | 609 | f | {609 } | {"For Share"} | {3161 }
129
+ (0,2) | 609 | f | {609 } | {"For Share"} | {3161 }
130
+ (0,3) | 607 | f | {607} | {"For Update"} | {3107 }
131
+ (0,4) | 607 | f | {607} | {"For Update"} | {3107 }
132
132
(4 rows)
133
133
</screen>
134
134
</sect2>
0 commit comments