X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 80AD99DC8D9 for ; Sat, 17 Dec 2005 14:17:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 23698-06 for ; Sat, 17 Dec 2005 14:17:34 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id E3E399DC88F for ; Sat, 17 Dec 2005 14:17:32 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id jBHIHWDh008663; Sat, 17 Dec 2005 13:17:33 -0500 (EST) To: Dick Visser cc: pgsql-admin@postgresql.org Subject: Re: binary vs. txt dumps with pg In-reply-to: <43A3F676.5000109@tienhuis.nl> References: <43A3F676.5000109@tienhuis.nl> Comments: In-reply-to Dick Visser message dated "Sat, 17 Dec 2005 12:28:54 +0100" Date: Sat, 17 Dec 2005 13:17:32 -0500 Message-ID: <8662.1134843452@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.013 required=5 tests=[AWL=0.013] X-Spam-Score: 0.013 X-Spam-Level: X-Archive-Number: 200512/182 X-Sequence-Number: 19902 Dick Visser 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