@@ -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</>,
@@ -120,14 +120,14 @@ SELECT * FROM accounts AS a, pgrowlocks('accounts') AS p
120
120
<sect2>
121
121
<title>Sample Output</title>
122
122
123
- <screen>
124
- test =# SELECT * FROM pgrowlocks('t1');
125
- locked_row | lock_type | locker | multi | xids | pids
126
- ------------+----------- +-------- +-------+-----------+ ------- --------
127
- (0,1) | Shared | 19 | t | {804,805 } | {29066,29068 }
128
- (0,2) | Shared | 19 | t | {804,805 } | {29066,29068 }
129
- (0,3) | Exclusive | 804 | f | {804} | {29066 }
130
- (0,4) | Exclusive | 804 | f | {804} | {29066 }
123
+ <screen>
124
+ =# SELECT * FROM pgrowlocks('t1');
125
+ locked_row | locker | multi | xids | modes | pids
126
+ ------------+--------+-------+-------+----------------+ --------
127
+ (0,1) | 609 | f | {609 } | {"For Share"} | {3161 }
128
+ (0,2) | 609 | f | {609 } | {"For Share"} | {3161 }
129
+ (0,3) | 607 | f | {607} | {"For Update"} | {3107 }
130
+ (0,4) | 607 | f | {607} | {"For Update"} | {3107 }
131
131
(4 rows)
132
132
</screen>
133
133
</sect2>
0 commit comments