Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit80810ca

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 anoversight from0ac5ad5, which bumped up pgrowlocks but forgot some bitsof the documentation.Reported-by: Chris WilsonDiscussion:https://postgr.es/m/153838692816.2950.12001142346234155699@wrigleys.postgresql.orgBackpatch-through: 9.3
1 parent0fd6a8a commit80810ca

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
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp