manpagez: man pages & more
man pg_xlogdump(1)
Home | html | info | man
pg_xlogdump(1)          PostgreSQL 9.6.6 Documentation          pg_xlogdump(1)


       pg_xlogdump - display a human-readable rendering of the write-ahead log
       of a PostgreSQL database cluster


       pg_xlogdump [option...] [startseg [endseg]]


       pg_xlogdump displays the write-ahead log (WAL) and is mainly useful for
       debugging or educational purposes.

       This utility can only be run by the user who installed the server,
       because it requires read-only access to the data directory.


       The following command-line options control the location and format of
       the output:

           Start reading at the specified log segment file. This implicitly
           determines the path in which files will be searched for, and the
           timeline to use.

           Stop after reading the specified log segment file.

           Output detailed information about backup blocks.

       -e end
           Stop reading at the specified log position, instead of reading to
           the end of the log stream.

           After reaching the end of valid WAL, keep polling once per second
           for new WAL to appear.

       -n limit
           Display the specified number of records, then stop.

       -p path
           Specifies a directory to search for log segment files or a
           directory with a pg_xlog subdirectory that contains such files. The
           default is to search in the current directory, the pg_xlog
           subdirectory of the current directory, and the pg_xlog subdirectory
           of PGDATA.

       -r rmgr
           Only display records generated by the specified resource manager.
           If list is passed as name, print a list of valid resource manager
           names, and exit.

       -s start
           Log position at which to start reading. The default is to start
           reading the first valid log record found in the earliest file

       -t timeline
           Timeline from which to read log records. The default is to use the
           value in startseg, if that is specified; otherwise, the default is

           Print the pg_xlogdump version and exit.

       -x xid
           Only display records marked with the given transaction ID.

           Display summary statistics (number and size of records and
           full-page images) instead of individual records. Optionally
           generate statistics per-record instead of per-rmgr.

           Show help about pg_xlogdump command line arguments, and exit.


       Can give wrong results when the server is running.

       Only the specified timeline is displayed (or the default, if none is
       specified). Records in other timelines are ignored.

       pg_xlogdump cannot read WAL files with suffix .partial. If those files
       need to be read, .partial suffix needs to be removed from the file


       Section 30.5, "WAL Internals", in the documentation

PostgreSQL 9.6.6                     2017                       pg_xlogdump(1)

PostgreSQL 9.6.6 - Generated Fri Dec 1 19:38:54 CST 2017
© 2000-2021
Individual documents may contain additional copyright information.