Skip to content

Commit 0353f48

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 ec5f71a commit 0353f48

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</>,
@@ -120,14 +120,14 @@ SELECT * FROM accounts AS a, pgrowlocks('accounts') AS p
120120
<sect2>
121121
<title>Sample Output</title>
122122

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

0 commit comments

Comments
 (0)