Verify Option with pg_dump - Mailing list pgsql-general

From Howard News
Subject Verify Option with pg_dump
Date
Msg-id 971934f7-e32a-4eb6-9541-afa273053b7c@selestial.com
Whole thread Raw
Responses Re: Verify Option with pg_dump  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
List pgsql-general

Hi,

recently I had problems with a corrupt pg_dump file. The problem with the file was due to a faulty disk. The trouble with this is that I was unaware of the disk problem and the pg_dump file corruption so I did not have a full valid backup. In order to reduce the chances of this I was hoping that there could be a verify option as in SQL Server for the backups. This could be as simple as checking the CRC/MD5 as the stream is created. So pg_dump | crc_save

The idea being that the pg_dump is crc'd before it is streamed to disk, and then the file re-read from disk to check the CRC.

Is there a linux utility to do this or would it be simple to modify pg_dump to do this?

Thanks

Howard.

www.selestial.com


pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: Index size
Next
From: Thomas Kellerer
Date:
Subject: Re: About the MONEY type