Skip to content

Commit b5e3942

Browse files
committed
Add subsection headers in pageinspect documentation
extracted from a patch from Jesper Pedersen <jesper.pedersen@redhat.com>
1 parent adfb81d commit b5e3942

File tree

1 file changed

+43
-25
lines changed

1 file changed

+43
-25
lines changed

doc/src/sgml/pageinspect.sgml

Lines changed: 43 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</para>
1515

1616
<sect2>
17-
<title>Functions</title>
17+
<title>General Functions</title>
1818

1919
<variablelist>
2020
<varlistentry>
@@ -160,7 +160,36 @@ test=# SELECT * FROM heap_page_item_attrs(get_raw_page('pg_class', 0), 'pg_class
160160
</para>
161161
</listitem>
162162
</varlistentry>
163-
163+
164+
<varlistentry>
165+
<term>
166+
<function>fsm_page_contents(page bytea) returns text</function>
167+
<indexterm>
168+
<primary>fsm_page_contents</primary>
169+
</indexterm>
170+
</term>
171+
172+
<listitem>
173+
<para>
174+
<function>fsm_page_contents</function> shows the internal node structure
175+
of a FSM page. The output is a multiline string, with one line per
176+
node in the binary tree within the page. Only those nodes that are not
177+
zero are printed. The so-called "next" pointer, which points to the
178+
next slot to be returned from the page, is also printed.
179+
</para>
180+
<para>
181+
See <filename>src/backend/storage/freespace/README</> for more
182+
information on the structure of an FSM page.
183+
</para>
184+
</listitem>
185+
</varlistentry>
186+
</variablelist>
187+
</sect2>
188+
189+
<sect2>
190+
<title>B-tree Functions</title>
191+
192+
<variablelist>
164193
<varlistentry>
165194
<term>
166195
<function>bt_metap(relname text) returns record</function>
@@ -261,7 +290,13 @@ test=# SELECT * FROM bt_page_items('pg_cast_oid_index', 1);
261290
</para>
262291
</listitem>
263292
</varlistentry>
293+
</variablelist>
294+
</sect2>
264295

296+
<sect2>
297+
<title>BRIN Functions</title>
298+
299+
<variablelist>
265300
<varlistentry>
266301
<term>
267302
<function>brin_page_type(page bytea) returns text</function>
@@ -365,7 +400,13 @@ test=# SELECT * FROM brin_page_items(get_raw_page('brinidx', 5),
365400
</para>
366401
</listitem>
367402
</varlistentry>
403+
</variablelist>
404+
</sect2>
405+
406+
<sect2>
407+
<title>GIN Functions</title>
368408

409+
<variablelist>
369410
<varlistentry>
370411
<term>
371412
<function>gin_metapage_info(page bytea) returns record</function>
@@ -449,29 +490,6 @@ test=# SELECT first_tid, nbytes, tids[0:5] AS some_tids
449490
</para>
450491
</listitem>
451492
</varlistentry>
452-
453-
<varlistentry>
454-
<term>
455-
<function>fsm_page_contents(page bytea) returns text</function>
456-
<indexterm>
457-
<primary>fsm_page_contents</primary>
458-
</indexterm>
459-
</term>
460-
461-
<listitem>
462-
<para>
463-
<function>fsm_page_contents</function> shows the internal node structure
464-
of a FSM page. The output is a multiline string, with one line per
465-
node in the binary tree within the page. Only those nodes that are not
466-
zero are printed. The so-called "next" pointer, which points to the
467-
next slot to be returned from the page, is also printed.
468-
</para>
469-
<para>
470-
See <filename>src/backend/storage/freespace/README</> for more
471-
information on the structure of an FSM page.
472-
</para>
473-
</listitem>
474-
</varlistentry>
475493
</variablelist>
476494
</sect2>
477495

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy