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.
Stop reading at the specified log position, instead of reading to the end of the log stream.
Display the specified number of records, then stop.
Directory in which to find log segment files. The default is to search for them in the pg_xlog subdirectory of the current directory.
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.
Log position at which to start reading. The default is to start reading the first valid log record found in the earliest file found.
Timeline from which to read log records. The default is to use the value in startseg, if that is specified; otherwise, the default is 1.
Print the pg_xlogdump version and exit.
Only display records marked with the given TransactionId.
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.
Please use this form to add your own comments regarding your experience with particular features of PostgreSQL, clarifications of the documentation, or hints for other users. Please note, this is not a support forum, and your IP address will be logged. If you have a question or need help, please see the faq, try a mailing list, or join us on IRC. Note that submissions containing URLs or other keywords commonly found in 'spam' comments may be silently discarded. Please contact the webmaster if you think this is happening to you in error.
Proceed to the comment form.