Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 80810ca

Browse files
committed
Fix documentation of pgrowlocks using "lock_type" instead of "modes"
The example used in the documentation is outdated as well. This is an oversight from 0ac5ad5, which bumped up pgrowlocks but forgot some bits of the documentation. Reported-by: Chris Wilson Discussion: https://postgr.es/m/153838692816.2950.12001142346234155699@wrigleys.postgresql.org Backpatch-through: 9.3
1 parent 0fd6a8a commit 80810ca

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/src/sgml/pgrowlocks.sgml

+9-9
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pgrowlocks(text) returns setof record
7070
<entry>Transaction IDs of lockers (more than one if multitransaction)</entry>
7171
</row>
7272
<row>
73-
<entry><structfield>lock_type</structfield></entry>
73+
<entry><structfield>modes</structfield></entry>
7474
<entry><type>text[]</type></entry>
7575
<entry>Lock mode of lockers (more than one if multitransaction),
7676
an array of <literal>Key Share</literal>, <literal>Share</literal>,
@@ -127,14 +127,14 @@ SELECT * FROM accounts AS a, pgrowlocks('accounts') AS p
127127
<sect2>
128128
<title>Sample Output</title>
129129

130-
<screen>
131-
test=# SELECT * FROM pgrowlocks('t1');
132-
locked_row | lock_type | locker | multi | xids | pids
133-
------------+-----------+--------+-------+-----------+---------------
134-
(0,1) | Shared | 19 | t | {804,805} | {29066,29068}
135-
(0,2) | Shared | 19 | t | {804,805} | {29066,29068}
136-
(0,3) | Exclusive | 804 | f | {804} | {29066}
137-
(0,4) | Exclusive | 804 | f | {804} | {29066}
130+
<screen>
131+
=# SELECT * FROM pgrowlocks('t1');
132+
locked_row | locker | multi | xids | modes | pids
133+
------------+--------+-------+-------+----------------+--------
134+
(0,1) | 609 | f | {609} | {"For Share"} | {3161}
135+
(0,2) | 609 | f | {609} | {"For Share"} | {3161}
136+
(0,3) | 607 | f | {607} | {"For Update"} | {3107}
137+
(0,4) | 607 | f | {607} | {"For Update"} | {3107}
138138
(4 rows)
139139
</screen>
140140
</sect2>

0 commit comments

Comments
 (0)