Skip to content

Commit f896057

Browse files
committed
Document WAL summarization information functions.
Commit 174c480 added two new information functions but failed to document them anywhere. Discussion: http://postgr.es/m/CA+Tgmobvqqj-DW9F7uUzT-cQqs6wcVb-Xhs=w=hzJnXSE-kRGw@mail.gmail.com
1 parent d97ef75 commit f896057

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

doc/src/sgml/func.sgml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26480,6 +26480,86 @@ SELECT collation for ('foo' COLLATE "de_DE");
2648026480

2648126481
</sect2>
2648226482

26483+
<sect2 id="functions-info-wal-summary">
26484+
<title>WAL Summarization Information Functions</title>
26485+
26486+
<para>
26487+
The functions shown in <xref linkend="functions-wal-summary"/>
26488+
print information about the status of WAL summarization.
26489+
See <xref linkend="guc-summarize-wal" />.
26490+
</para>
26491+
26492+
<table id="functions-wal-summary">
26493+
<title>WAL Summarization Information Functions</title>
26494+
<tgroup cols="1">
26495+
<thead>
26496+
<row>
26497+
<entry role="func_table_entry"><para role="func_signature">
26498+
Function
26499+
</para>
26500+
<para>
26501+
Description
26502+
</para></entry>
26503+
</row>
26504+
</thead>
26505+
26506+
<tbody>
26507+
<row>
26508+
<entry role="func_table_entry"><para role="func_signature">
26509+
<indexterm>
26510+
<primary>pg_available_wal_summaries</primary>
26511+
</indexterm>
26512+
<function>pg_available_wal_summaries</function> ()
26513+
<returnvalue>setof record</returnvalue>
26514+
( <parameter>tli</parameter> <type>bigint</type>,
26515+
<parameter>start_lsn</parameter> <type>pg_lsn</type>,
26516+
<parameter>end_lsn</parameter> <type>pg_lsn</type> )
26517+
</para>
26518+
<para>
26519+
Returns information about the WAL summary files present in the
26520+
data directory, under <literal>pg_wal/summaries</literal>.
26521+
One row will be returned per WAL summary file. Each file summarizes
26522+
WAL on the indicated TLI within the indicated LSN range. This function
26523+
might be useful to determine whether enough WAL summaries are present
26524+
on the server to take an incremental backup based on some prior
26525+
backup whose start LSN is known.
26526+
</para></entry>
26527+
</row>
26528+
26529+
<row>
26530+
<entry role="func_table_entry"><para role="func_signature">
26531+
<indexterm>
26532+
<primary>pg_wal_summary_contents</primary>
26533+
</indexterm>
26534+
<function>pg_wal_summary_contents</function> ( <parameter>tli</parameter> <type>bigint</type>, <parameter>start_lsn</parameter> <type>pg_lsn</type>, <parameter>end_lsn</parameter> <type>pg_lsn</type> )
26535+
<returnvalue>setof record</returnvalue>
26536+
( <parameter>relfilenode</parameter> <type>oid</type>,
26537+
<parameter>reltablespace</parameter> <type>oid</type>,
26538+
<parameter>reldatabase</parameter> <type>oid</type>,
26539+
<parameter>relforknumber</parameter> <type>smallint</type>,
26540+
<parameter>relblocknumber</parameter> <type>bigint</type>,
26541+
<parameter>is_limit_block</parameter> <type>boolean</type> )
26542+
</para>
26543+
<para>
26544+
Returns one information about the contents of a single WAL summary file
26545+
identified by TLI and starting and ending LSNs. Each row with
26546+
<literal>is_limit_block</literal> false indicates that the block
26547+
identified by the remaining output columns was modified by at least
26548+
one WAL record within the range of records summarized by this file.
26549+
Each row with <literal>is_limit_block</literal> true indicates either
26550+
that (a) the relation fork was truncated to the length given by
26551+
<literal>relblocknumber</literal> within the relevant range of WAL
26552+
records or (b) that the relation fork was created or dropped within
26553+
the relevant range of WAL records; in such cases,
26554+
<literal>relblocknumber</literal> will be zero.
26555+
</para></entry>
26556+
</row>
26557+
</tbody>
26558+
</tgroup>
26559+
</table>
26560+
26561+
</sect2>
26562+
2648326563
</sect1>
2648426564

2648526565
<sect1 id="functions-admin">

0 commit comments

Comments
 (0)