Re: [HACKERS] pg_dump table order - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] pg_dump table order
Date
Msg-id 199909131535.LAA17272@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] pg_dump table order  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] pg_dump table order  (Dmitry Samersoff <dms@wplus.net>)
List pgsql-hackers
> Better idea: make pg_dump smarter, so that it sorts the tables by name
> as far as possible without breaking inheritance and membership
> dependencies.  It already retrieves the inheritance graph, and it could
> certainly figure column-type dependencies too.  I don't think anyone
> would object to producing the output in a more meaningful order, so
> I see no need for a switch if you can make this work.
> 
> I used to know enough about topological sorts to sketch how this ought
> to work, but that was years ago :-(.  I do see that the simplest
> approach to a sort comparison function, "if a depends on b then say a>b,
> else say result of comparing name(a) and name(b)", will not work because
> it's not transitive.

I now someone fixed some of that recently, and I thought it was in 6.5.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: [HACKERS] Status report: long-query-string changes
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Status report: long-query-string changes