From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dick Visser <dick.visser@tienhuis.nl>
Cc: pgsql-admin@postgresql.org
Subject: Re: binary vs. txt dumps with pg
Date: Sat, 17 Dec 2005 13:17:32 -0500
Message-ID: <8662.1134843452@sss.pgh.pa.us> (raw)
In-Reply-To: <43A3F676.5000109@tienhuis.nl>
References: <43A3F676.5000109@tienhuis.nl>
Dick Visser <dick.visser@tienhuis.nl> writes:
> Since I use rysnc to a remote host for backups, I have created a
> script hat dumps each db to a file, and then checks if the dump from
> yesterday is different.
> I have been fiddling with all kinds of techniques to accomplish this.
> The only way that seems to work is to make txt based dumps, and strip
> out all the comments and empty lines:
Have you retested this assumption recently? We got rid of the OIDs and
stuff in the default comments, so I think that you should be able to
just diff the text dump files without any weird processing.
> When I try to dump to custom format, the dumps are *not* the same
> anymore, even though the data has *not* changed.
There's a timestamp in the custom format file header.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, dick.visser@tienhuis.nl
Subject: Re: binary vs. txt dumps with pg
In-Reply-To: <8662.1134843452@sss.pgh.pa.us>
References: <43A3F676.5000109@tienhuis.nl> <8662.1134843452@sss.pgh.pa.us>
* 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