mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Add additional filtering options to pg_waldump.
Allow filtering by RelFileNode, BlockNumber, ForkNum and FPW. Author: David Christensen <david.christensen@crunchydata.com> Reviewed-by: Japin Li <japinli@hotmail.com> Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Reviewed-by: Cary Huang <cary.huang@highgo.ca> Reviewed-by: Thomas Munro <thomas.munro@gmail.com> Discussion: https://postgr.es/m/lzzgmgm6e5.fsf%40veeddrois.attlocal.net
This commit is contained in:
@ -100,6 +100,45 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-k <replaceable>block</replaceable></option></term>
|
||||
<term><option>--block=<replaceable>block</replaceable></option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Only display records that modify the given block. The relation must
|
||||
also be provided with <option>--relation</option> or
|
||||
<option>-l</option>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-F <replaceable>fork</replaceable></option></term>
|
||||
<term><option>--fork=<replaceable>fork</replaceable></option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
If provided, only display records that modify blocks in the given fork.
|
||||
The valid values are <literal>0</literal> for the main fork,
|
||||
<literal>1</literal> for the free space map,
|
||||
<literal>2</literal> for the visibility map,
|
||||
and <literal>3</literal> for the init fork.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-l <replaceable>tblspc</replaceable>/<replaceable>db</replaceable>/<replaceable>rel</replaceable></option></term>
|
||||
<term><option>--relation=<replaceable>tblspc</replaceable>/<replaceable>db</replaceable>/<replaceable>rel</replaceable></option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Only display records that modify blocks in the given relation. The
|
||||
relation is specified with tablespace OID, database OID, and relfilenode
|
||||
separated by slashes, for example <literal>1234/12345/12345</literal>.
|
||||
This is the same format used for relations in the program's output.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-n <replaceable>limit</replaceable></option></term>
|
||||
<term><option>--limit=<replaceable>limit</replaceable></option></term>
|
||||
@ -183,6 +222,16 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-w</option></term>
|
||||
<term><option>--fullpage</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Only display records that include full page images.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-x <replaceable>xid</replaceable></option></term>
|
||||
<term><option>--xid=<replaceable>xid</replaceable></option></term>
|
||||
|
Reference in New Issue
Block a user