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

Commit33596ed

Browse files
committed
Copy-editing for contrib/pg_visibility documentation.
Add omitted names for some function parameters.Fix some minor grammatical issues.
1 parentea046f0 commit33596ed

File tree

1 file changed

+44
-43
lines changed

1 file changed

+44
-43
lines changed

‎doc/src/sgml/pgvisibility.sgml

Lines changed: 44 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,33 @@
99

1010
<para>
1111
The <filename>pg_visibility</> module provides a means for examining the
12-
visibility map (VM) and page-level visibility information. It also
13-
provides functions to check the integrity ofthe visibility map and to
12+
visibility map (VM) and page-level visibility information of a table.
13+
It alsoprovides functions to check the integrity ofa visibility map and to
1414
force it to be rebuilt.
1515
</para>
1616

1717
<para>
1818
Three different bits are used to store information about page-level
1919
visibility. The all-visible bit in the visibility map indicates that every
20-
tuple on a given page of a relation is visible to every current transaction.
21-
The all-frozen bit in the visibility map indicates that every tuple on the
22-
page is frozen; that is, no future vacuum will need to modify the page
23-
until such time as a tuple is inserted, updated, deleted, or locked on
24-
that page. The page-level <literal>PD_ALL_VISIBLE</literal> bit has the
20+
tuple in the corresponding page of the relation is visible to every current
21+
and future transaction. The all-frozen bit in the visibility map indicates
22+
that every tuple in the page is frozen; that is, no future vacuum will need
23+
to modify the page until such time as a tuple is inserted, updated, deleted,
24+
or locked on that page.
25+
The page header's <literal>PD_ALL_VISIBLE</literal> bit has the
2526
same meaning as the all-visible bit in the visibility map, but is stored
26-
within the data page itself rather than a separate data structure. These
27-
will normally agree, but the page-level bit can sometimes be set while the
28-
visibility map bit is clear after a crash recovery; or they can disagree
29-
because of a change which occurs after <literal>pg_visibility</> examines
30-
the visibility map and before it examines the data page. Any event which
31-
causes data corruption can also cause these bits to disagree.
27+
within the data page itself rather than in a separate data structure.
28+
These two bits will normally agree, but the page's all-visible bit can
29+
sometimes be set while the visibility map bit is clear after a crash
30+
recovery. The reported values can also disagree because of a change that
31+
occurs after <literal>pg_visibility</> examines the visibility map and
32+
before it examines the data page. Any event that causes data corruption
33+
can also cause these bits to disagree.
3234
</para>
3335

3436
<para>
35-
Functionswhich display information about <literal>PD_ALL_VISIBLE</>
36-
are much more costly than thosewhich only consult the visibility map,
37+
Functionsthat display information about <literal>PD_ALL_VISIBLE</> bits
38+
are much more costly than thosethat only consult the visibility map,
3739
because they must read the relation's data blocks rather than only the
3840
(much smaller) visibility map. Functions that check the relation's
3941
data blocks are similarly expensive.
@@ -44,7 +46,7 @@
4446

4547
<variablelist>
4648
<varlistentry>
47-
<term><function>pg_visibility_map(regclass, blkno bigint, all_visible OUT boolean, all_frozen OUT boolean) returns record</function></term>
49+
<term><function>pg_visibility_map(relationregclass, blkno bigint, all_visible OUT boolean, all_frozen OUT boolean) returns record</function></term>
4850
<listitem>
4951
<para>
5052
Returns the all-visible and all-frozen bits in the visibility map for
@@ -54,40 +56,40 @@
5456
</varlistentry>
5557

5658
<varlistentry>
57-
<term><function>pg_visibility(regclass, blkno bigint, all_visible OUT boolean, all_frozen OUT boolean, pd_all_visible OUT boolean) returns record</function></term>
59+
<term><function>pg_visibility(relationregclass, blkno bigint, all_visible OUT boolean, all_frozen OUT boolean, pd_all_visible OUT boolean) returns record</function></term>
5860
<listitem>
5961
<para>
6062
Returns the all-visible and all-frozen bits in the visibility map for
6163
the given block of the given relation, plus the
62-
<literal>PD_ALL_VISIBLE</> bitfor that block.
64+
<literal>PD_ALL_VISIBLE</> bitof that block.
6365
</para>
6466
</listitem>
6567
</varlistentry>
6668

6769
<varlistentry>
68-
<term><function>pg_visibility_map(regclass, blkno OUT bigint, all_visible OUT boolean, all_frozen OUT boolean) returns setof record</function></term>
70+
<term><function>pg_visibility_map(relationregclass, blkno OUT bigint, all_visible OUT boolean, all_frozen OUT boolean) returns setof record</function></term>
6971
<listitem>
7072
<para>
7173
Returns the all-visible and all-frozen bits in the visibility map for
72-
each block the given relation.
74+
each blockofthe given relation.
7375
</para>
7476
</listitem>
7577
</varlistentry>
7678

7779
<varlistentry>
78-
<term><function>pg_visibility(regclass, blkno OUT bigint, all_visible OUT boolean, all_frozen OUT boolean, pd_all_visible OUT boolean) returns setof record</function></term>
80+
<term><function>pg_visibility(relationregclass, blkno OUT bigint, all_visible OUT boolean, all_frozen OUT boolean, pd_all_visible OUT boolean) returns setof record</function></term>
7981

8082
<listitem>
8183
<para>
8284
Returns the all-visible and all-frozen bits in the visibility map for
83-
each block the given relation, plus the <literal>PD_ALL_VISIBLE</>
84-
bitfor each block.
85+
each blockofthe given relation, plus the <literal>PD_ALL_VISIBLE</>
86+
bitof each block.
8587
</para>
8688
</listitem>
8789
</varlistentry>
8890

8991
<varlistentry>
90-
<term><function>pg_visibility_map_summary(regclass, all_visible OUT bigint, all_frozen OUT bigint) returns record</function></term>
92+
<term><function>pg_visibility_map_summary(relationregclass, all_visible OUT bigint, all_frozen OUT bigint) returns record</function></term>
9193

9294
<listitem>
9395
<para>
@@ -96,50 +98,49 @@
9698
</para>
9799
</listitem>
98100
</varlistentry>
99-
101+
100102
<varlistentry>
101-
<term><function>pg_check_frozen(regclass, t_ctid OUT tid) returns setof tid</function></term>
103+
<term><function>pg_check_frozen(relationregclass, t_ctid OUT tid) returns setof tid</function></term>
102104

103105
<listitem>
104106
<para>
105-
Returns the TIDs of non-frozen tuplespresent in pages marked all-frozen
107+
Returns the TIDs of non-frozen tuplesstored in pages marked all-frozen
106108
in the visibility map. If this function returns a non-empty set of
107-
TIDs, thedatabase is corrupt.
109+
TIDs, thevisibility map is corrupt.
108110
</para>
109111
</listitem>
110112
</varlistentry>
111-
112-
<varlistentry>
113-
<term><function>pg_check_visible(regclass, t_ctid OUT tid) returns setof tid</function></term>
113+
114+
<varlistentry>
115+
<term><function>pg_check_visible(relationregclass, t_ctid OUT tid) returns setof tid</function></term>
114116

115117
<listitem>
116118
<para>
117-
Returns the TIDs of tuples which are not all-visible despite the fact
118-
that the pages which contain them are marked as all-visible in the
119-
visibility map. If this function returns a non-empty set of TIDs, the
120-
database is corrupt.
119+
Returns the TIDs of non-all-visible tuples stored in pages marked
120+
all-visible in the visibility map. If this function returns a non-empty
121+
set of TIDs, the visibility map is corrupt.
121122
</para>
122123
</listitem>
123124
</varlistentry>
124125

125126
<varlistentry>
126-
<term><function>pg_truncate_visibility_map(regclass) returns void</function></term>
127+
<term><function>pg_truncate_visibility_map(relationregclass) returns void</function></term>
127128

128129
<listitem>
129130
<para>
130-
Truncates the visibility map for the given relation. This function
131-
is only expected to beuseful if yoususpect that the visibility map
132-
for the indicated relation iscorrupt and wish torebuildit. The first
133-
<command>VACUUM</>executed on the given relation after this function
134-
is executed will scanevery page in the relation and rebuild the
135-
visibility map.
131+
Truncates the visibility map for the given relation. This function is
132+
useful if youbelieve that the visibility map for the relation is
133+
corrupt and wish toforce rebuildingit. The first <command>VACUUM</>
134+
executed on the given relation after this function is executed will scan
135+
every page in the relation and rebuild the visibility map. (Until that
136+
is done, queries will treat thevisibility map as containing all zeroes.)
136137
</para>
137138
</listitem>
138139
</varlistentry>
139140
</variablelist>
140141

141142
<para>
142-
By default, these functions arenot publicly executable.
143+
By default, these functions areexecutable only by superusers.
143144
</para>
144145
</sect2>
145146

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp