Skip to content

Commit 4b2fb12

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 de0bea8 commit 4b2fb12

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/src/sgml/pgrowlocks.sgml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pgrowlocks(text) returns setof record
6363
<entry>Transaction IDs of lockers (more than one if multitransaction)</entry>
6464
</row>
6565
<row>
66-
<entry><structfield>lock_type</structfield></entry>
66+
<entry><structfield>modes</structfield></entry>
6767
<entry><type>text[]</type></entry>
6868
<entry>Lock mode of lockers (more than one if multitransaction),
6969
an array of <literal>Key Share</>, <literal>Share</>,
@@ -121,14 +121,14 @@ SELECT * FROM accounts AS a, pgrowlocks('accounts') AS p
121121
<sect2>
122122
<title>Sample Output</title>
123123

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}
132132
(4 rows)
133133
</screen>
134134
</sect2>

0 commit comments

Comments
 (0)