Skip to content

Commit 7687ca9

Browse files
committed
doc: Improve references to term "FSM" in pageinspect and pgfreespacemap
Author: Dong Wook Lee Reviewed-by: Laurenz Albe Discussion: https://postgr.es/m/CAAcBya+=F=HaHxJ7tGjAM1r=A=+bDbimpsex8Vqrb4GjqFDYsQ@mail.gmail.com
1 parent 43e7787 commit 7687ca9

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

doc/src/sgml/pageinspect.sgml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131
relation and returns a copy as a <type>bytea</type> value. This allows a
3232
single time-consistent copy of the block to be obtained.
3333
<replaceable>fork</replaceable> should be <literal>'main'</literal> for
34-
the main data fork, <literal>'fsm'</literal> for the free space map,
35-
<literal>'vm'</literal> for the visibility map, or <literal>'init'</literal>
36-
for the initialization fork.
34+
the main data fork, <literal>'fsm'</literal> for the
35+
<link linkend="storage-fsm">free space map</link>,
36+
<literal>'vm'</literal> for the
37+
<link linkend="storage-vm">visibility map</link>, or
38+
<literal>'init'</literal> for the initialization fork.
3739
</para>
3840
</listitem>
3941
</varlistentry>
@@ -136,7 +138,7 @@ test=# SELECT page_checksum(get_raw_page('pg_class', 0), 0);
136138
<listitem>
137139
<para>
138140
<function>fsm_page_contents</function> shows the internal node structure
139-
of an FSM page. For example:
141+
of an <acronym>FSM</acronym> page. For example:
140142
<screen>
141143
test=# SELECT fsm_page_contents(get_raw_page('pg_class', 'fsm', 0));
142144
</screen>
@@ -147,7 +149,7 @@ test=# SELECT fsm_page_contents(get_raw_page('pg_class', 'fsm', 0));
147149
</para>
148150
<para>
149151
See <filename>src/backend/storage/freespace/README</filename> for more
150-
information on the structure of an FSM page.
152+
information on the structure of an <acronym>FSM</acronym> page.
151153
</para>
152154
</listitem>
153155
</varlistentry>

doc/src/sgml/pgfreespacemap.sgml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
<para>
1111
The <filename>pg_freespacemap</filename> module provides a means for examining the
12-
free space map (FSM). It provides a function called
13-
<function>pg_freespace</function>, or two overloaded functions, to be
14-
precise. The functions show the value recorded in the free space map for
15-
a given page, or for all pages in the relation.
12+
<link linkend="storage-fsm">free space map</link> (<acronym>FSM</acronym>).
13+
It provides a function called <function>pg_freespace</function>, or two
14+
overloaded functions, to be precise. The functions show the value recorded in
15+
the free space map for a given page, or for all pages in the relation.
1616
</para>
1717

1818
<para>
@@ -36,7 +36,7 @@
3636
<listitem>
3737
<para>
3838
Returns the amount of free space on the page of the relation, specified
39-
by <literal>blkno</literal>, according to the FSM.
39+
by <literal>blkno</literal>, according to the <acronym>FSM</acronym>.
4040
</para>
4141
</listitem>
4242
</varlistentry>
@@ -50,7 +50,8 @@
5050
<listitem>
5151
<para>
5252
Displays the amount of free space on each page of the relation,
53-
according to the FSM. A set of <literal>(blkno bigint, avail int2)</literal>
53+
according to the <acronym>FSM</acronym>. A set of
54+
<literal>(blkno bigint, avail int2)</literal>
5455
tuples is returned, one tuple for each page in the relation.
5556
</para>
5657
</listitem>
@@ -112,8 +113,8 @@ postgres=# SELECT * FROM pg_freespace('foo', 7);
112113

113114
<para>
114115
Original version by Mark Kirkwood <email>markir@paradise.net.nz</email>.
115-
Rewritten in version 8.4 to suit new FSM implementation by Heikki
116-
Linnakangas <email>heikki@enterprisedb.com</email>
116+
Rewritten in version 8.4 to suit new <acronym>FSM</acronym> implementation
117+
by Heikki Linnakangas <email>heikki@enterprisedb.com</email>
117118
</para>
118119
</sect2>
119120

doc/src/sgml/storage.sgml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,10 +603,11 @@ tuple would otherwise be too big.
603603

604604
<para>
605605
Each heap and index relation, except for hash indexes, has a Free Space Map
606-
(FSM) to keep track of available space in the relation. It's stored
607-
alongside the main relation data in a separate relation fork, named after the
608-
filenode number of the relation, plus a <literal>_fsm</literal> suffix. For example,
609-
if the filenode of a relation is 12345, the FSM is stored in a file called
606+
(<acronym>FSM</acronym>) to keep track of available space in the relation.
607+
It's stored alongside the main relation data in a separate relation fork,
608+
named after the filenode number of the relation, plus a <literal>_fsm</literal>
609+
suffix. For example, if the filenode of a relation is 12345, the
610+
<acronym>FSM</acronym> is stored in a file called
610611
<filename>12345_fsm</filename>, in the same directory as the main relation file.
611612
</para>
612613

0 commit comments

Comments
 (0)