From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Validate the internal consistency of pg_dump output?
Date: Thu, 22 Sep 2022 10:16:43 -0500
Message-ID: <f9d0f7ef-baeb-08f0-066b-f62af7d34c66@gmail.com> (raw)
In my case, it's directory format backups.
(I'm not asking whether the pg_dump output is exactly the same as the data
in the database; that can only be done inside of pg_dump, and I don't see
any option for that anyway.)
Is there a tool for validating that:
- there are "\N" lines at the end of every NNNN.dat(.gz) file,
- toc.dat isn't "missing" data at the end of the file, and that
- there are NNNN.dat(.gz) files corresponding to all the tables mentioned in
toc.dat?
The use case would be in validating that pg_dump actually dumped all the
data when there's a question of whether or not it completed.
--
Angular momentum makes the world go 'round.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: Validate the internal consistency of pg_dump output?
In-Reply-To: <f9d0f7ef-baeb-08f0-066b-f62af7d34c66@gmail.com>
References: <f9d0f7ef-baeb-08f0-066b-f62af7d34c66@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox