dump diffs even w/o db changes

Hi folks,

I'm doing regular (hourly) dumps and putting them into git
(and automatically pushing it to several git servers).

The problem is: the dumps are always differing (even if nothing
happened in that db).

diff --git a/DB-net79.sql b/DB-net79.sql
index 89b682d..c8be6d6 100644
--- a/DB-net79.sql
+++ b/DB-net79.sql
[at] [at] -12,7 +12,7 [at] [at] SET client_min_messages = warning;

CREATE TEMPORARY TABLE pgdump_oid (dummy integer) WITH OIDS;
COPY pgdump_oid WITH OIDS FROM stdin;
-22336387 0
+22336547 0
\.
DROP TABLE pgdump_oid;


This unnecessarily pollutes the history and procudes high load
when git-gc / git-repack runs.

Is there any way to get rid of these differences ?


cu
-
------------------------------------------------------------ ---------
Enrico Weigelt == metux IT service - http://www.metux.de/
------------------------------------------------------------ ---------
Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
------------------------------------------------------------ ---------

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
weigelt [ Fr, 30 April 2010 18:14 ] [ ID #2040562 ]

Re: dump diffs even w/o db changes

Enrico Weigelt <weigelt [at] metux.de> writes:
> I'm doing regular (hourly) dumps and putting them into git
> (and automatically pushing it to several git servers).
> The problem is: the dumps are always differing (even if nothing
> happened in that db).

> CREATE TEMPORARY TABLE pgdump_oid (dummy integer) WITH OIDS;
> COPY pgdump_oid WITH OIDS FROM stdin;
> -22336387 0

> Is there any way to get rid of these differences ?

(1) don't specify --oids
or
(2) update to something newer than 8.0 ... we haven't emitted that
for a long time.

regards, tom lane

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Tom Lane [ Fr, 30 April 2010 20:39 ] [ ID #2040566 ]
Datenbanken » gmane.comp.db.postgresql.admin » dump diffs even w/o db changes

Vorheriges Thema: more 10K disks or less 15K disks
Nächstes Thema: Can I safely kill a VACUUM ANALYZE with pg_cancel_backend 8.3