dbTalk Databases Forums  

[BUGS] BUG #1801: pg_dump dumps tables in alphabetical order, not as created

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1801: pg_dump dumps tables in alphabetical order, not as created in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Peter Valach
 
Posts: n/a

Default [BUGS] BUG #1801: pg_dump dumps tables in alphabetical order, not as created - 08-05-2005 , 12:30 AM







The following bug has been logged online:

Bug reference: 1801
Logged by: Peter Valach
Email address: valach (AT) pv2c (DOT) sk
PostgreSQL version: 8.0.3
Operating system: Linux (Gentoo)
Description: pg_dump dumps tables in alphabetical order, not as
created
Details:

When using pg_dump, it stores tables inside dump file in alphabetical order,
not in the order they were created. This is not a problem for full dump
(because foreign keys are created at the end), but it is a big problem for
--data-only.

Example: I have two tables "aaa" and "bbb", and some column from "aaa"
references "bbb". Before (7.x.x), pg_dump --data-only will dump "bbb" table
first, "aaa" second (they were created in this order) and restore will go
OK. Now (8.0.x, 8.0.1 and 8.0.3 tested) it dumps "aaa" first and I get "...
violates foreign key" messages and no "aaa" table data is restored.

I hope I'm not missing something, but I didn't find anything about this in
pg_dump docs.

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.