pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Daniel Migowski <dmigowski@ikoffice.de>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5986: pg_dump output is not ordered
Date: Tue, 19 Apr 2011 17:27:46 +0300
Message-ID: <1303223266.24799.13.camel@fsopti579.F-Secure.com> (raw)
In-Reply-To: <201104191252.p3JCqe2W074774@wwwmaster.postgresql.org>
References: <201104191252.p3JCqe2W074774@wwwmaster.postgresql.org>

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.





view thread (4+ messages)  latest in thread

Message-ID: <1303223266.24799.13.camel@fsopti579.F-Secure.com>
Permalink:  ../1303223266.24799.13.camel@fsopti579.F-Secure.com/
Also on:    postgresql.org/message-id/1303223266.24799.13.camel@fsopti579.F-Secure.com

 · 

reply

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-bugs@postgresql.org
  Cc: peter_e@gmx.net, dmigowski@ikoffice.de
  Subject: Re: BUG #5986: pg_dump output is not ordered
  In-Reply-To: <1303223266.24799.13.camel@fsopti579.F-Secure.com>
  References: <201104191252.p3JCqe2W074774@wwwmaster.postgresql.org> <1303223266.24799.13.camel@fsopti579.F-Secure.com>

* 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