These files are the verbatim output of pg_fsck_check(format) — no
post-processing — so they show exactly what the function produces. (JSON is
pretty-printed by the function itself; HTML/XML are single-line — pipe through
xmllint --format if you want them indented.)
pg_fsck_check produces a multi-section report, not just a problem list.
The sections are:
- environment — engine version, current database, block/segment size, data checksums, data directory, report time
- summary — total files, total size, schema count, and error/warning counts
- findings — the problems found (missing / extra / segment / fork anomalies)
- invalid_databases — databases stuck in the INVALID state
- file_composition — file count and size grouped by fork / schema / kind
- temp_files —
pgsql_tmpquery-spill files
report.json—SELECT pg_fsck_check('json')report.md—SELECT pg_fsck_check('markdown')report.html—SELECT pg_fsck_check('html')report.xml—SELECT pg_fsck_check('xml')
A database with three kinds of injected problems:
- Missing file — table
ordersregistered inpg_class, but its relfilenode file was deleted from disk (anerror). - Extra / orphaned files — a stray file
base/5/8888888with no catalog entry, plus the leftoverorders_fsmfork whose main fork is now gone (bothwarning). - Invalid database —
half_dropped_dbleft in the INVALID state by an interruptedDROP DATABASE(warning).
A healthy database instead produces an empty report ([] for JSON, a
"no problems found" row for Markdown, empty containers for HTML/XML).