Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 621631337B9C for ; Tue, 19 Apr 2011 11:28:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 69201-01 for ; Tue, 19 Apr 2011 14:27:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mail.postgresql.org (Postfix) with SMTP id 744A21337B54 for ; Tue, 19 Apr 2011 11:27:49 -0300 (ADT) Received: (qmail invoked by alias); 19 Apr 2011 14:27:47 -0000 Received: from fsgw.f-secure.com (EHLO [10.128.133.18]) [193.110.108.33] by mail.gmx.net (mp049) with SMTP; 19 Apr 2011 16:27:47 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX18V981PXhMVr61skyDsgilQRgOt+h7REJ9+1P/QYx 413Nh8kIPK3DRk Subject: Re: BUG #5986: pg_dump output is not ordered From: Peter Eisentraut To: Daniel Migowski Cc: pgsql-bugs@postgresql.org In-Reply-To: <201104191252.p3JCqe2W074774@wwwmaster.postgresql.org> References: <201104191252.p3JCqe2W074774@wwwmaster.postgresql.org> Content-Type: text/plain; charset="UTF-8" Date: Tue, 19 Apr 2011 17:27:46 +0300 Message-ID: <1303223266.24799.13.camel@fsopti579.F-Secure.com> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/135 X-Sequence-Number: 30054 On Tue, 2011-04-19 at 12:52 +0000, Daniel Migowski wrote: > I would love to give pg_dump an option to produce ordered output. This would > make it much easier to create dump files that are comparable with a textual > diff tools. > > The following orderings are required: > > * Dump objects ordered by name. I know this cannot be done with all objects, > but at least remain a reproducable, deterministic order. It does do that. > Also nice would be: > > * Dump data ordered by primary key, or if not available, dump data ordered > by all columns. Hmm, that would probably make pg_dump 5000 times slower on average. There are various tools out there that can compare data between databases that might do a better job. > In addition it would be nice to have an option to omit oid comments, because > oids are usually not used in databases. It doesn't do that anymore in recent versions.