pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #5986: pg_dump output is not ordered
4+ messages / 4 participants
[nested] [flat]

* BUG #5986: pg_dump output is not ordered
@ 2011-04-19 12:52 Daniel Migowski <dmigowski@ikoffice.de>
  2011-04-19 13:42 ` Re: BUG #5986: pg_dump output is not ordered Kevin Grittner <Kevin.Grittner@wicourts.gov>
  2011-04-19 14:27 ` Re: BUG #5986: pg_dump output is not ordered Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 2 replies; 4+ messages in thread

From: Daniel Migowski @ 2011-04-19 12:52 UTC (permalink / raw)
  To: pgsql-bugs


The following bug has been logged online:

Bug reference:      5986
Logged by:          Daniel Migowski
Email address:      dmigowski@ikoffice.de
PostgreSQL version: 8.3.14
Operating system:   Many
Description:        pg_dump output is not ordered
Details: 

Hi,

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.

Also nice would be:

* Dump data ordered by primary key, or if not available, dump data ordered
by all columns. 

In addition it would be nice to have an option to omit oid comments, because
oids are usually not used in databases.

Thank you very much.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #5986: pg_dump output is not ordered
  2011-04-19 12:52 BUG #5986: pg_dump output is not ordered Daniel Migowski <dmigowski@ikoffice.de>
@ 2011-04-19 13:42 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
  1 sibling, 0 replies; 4+ messages in thread

From: Kevin Grittner @ 2011-04-19 13:42 UTC (permalink / raw)
  To: Daniel Migowski <dmigowski@ikoffice.de>; pgsql-bugs

"Daniel Migowski" <dmigowski@ikoffice.de> wrote:
 
> I would love to give pg_dump an option to produce ordered output.
 
This is a feature request, not a bug -- so this list is not the
right place to discuss it.  A discussion like this would be more
appropriate on the pgsql-general list.  When starting a new thread,
it might be good to browse this page to pick the most appropriate
list:
 
http://www.postgresql.org/community/lists/
 
This helps people focus on the discussion in which they are most
interested.  The volume of posts can be overwhelming otherwise.
 
Thanks,
 
-Kevin



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #5986: pg_dump output is not ordered
  2011-04-19 12:52 BUG #5986: pg_dump output is not ordered Daniel Migowski <dmigowski@ikoffice.de>
@ 2011-04-19 14:27 ` Peter Eisentraut <peter_e@gmx.net>
  2011-05-07 23:11   ` Re: BUG #5986: pg_dump output is not ordered tute <tute@dc.uba.ar>
  1 sibling, 1 reply; 4+ messages in thread

From: Peter Eisentraut @ 2011-04-19 14:27 UTC (permalink / raw)
  To: Daniel Migowski <dmigowski@ikoffice.de>; +Cc: pgsql-bugs

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.





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #5986: pg_dump output is not ordered
  2011-04-19 12:52 BUG #5986: pg_dump output is not ordered Daniel Migowski <dmigowski@ikoffice.de>
  2011-04-19 14:27 ` Re: BUG #5986: pg_dump output is not ordered Peter Eisentraut <peter_e@gmx.net>
@ 2011-05-07 23:11   ` tute <tute@dc.uba.ar>
  0 siblings, 0 replies; 4+ messages in thread

From: tute @ 2011-05-07 23:11 UTC (permalink / raw)
  To: pgsql-bugs

In Agile developement cycle was very useful to be able to do a "dump with
ordered data". For example were the data table was metadata and a dump of
the database was upload to a SVN.  

--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-5986-pg-dump-output-is-not-ordered-tp4313186p4379180.htm...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2011-05-07 23:11 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-04-19 12:52 BUG #5986: pg_dump output is not ordered Daniel Migowski <dmigowski@ikoffice.de>
2011-04-19 13:42 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
2011-04-19 14:27 ` Peter Eisentraut <peter_e@gmx.net>
2011-05-07 23:11   ` tute <tute@dc.uba.ar>

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