Unix Technical Forum

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

This is a discussion on BUG #1801: pg_dump dumps tables in alphabetical order, not as created within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 1801 Logged by: Peter Valach Email address: valach@pv2c.sk PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:04 AM
Peter Valach
 
Posts: n/a
Default BUG #1801: pg_dump dumps tables in alphabetical order, not as created


The following bug has been logged online:

Bug reference: 1801
Logged by: Peter Valach
Email address: valach@pv2c.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@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com