Re: pg_dump ordering - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: pg_dump ordering
Date
Msg-id 058201c357df$3f135160$2800a8c0@mars
Whole thread Raw
In response to pg_dump ordering  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Responses Re: pg_dump ordering
Re: pg_dump ordering
List pgsql-hackers
> What I'd like to see it do is grab the dependency data in pg_depend and
> do a topological sort using that.

At the end though, we'd need to dump stuff not caught be the topsort, for
cases where pg_depend has been messed with.

>  This leaves some issues still to be
> resolved ... like what to do when dumping a pre-7.3 database ... but I
> think it's the core of a maintainable solution.

Problem is you'd need to sort tables by the youngest column in the table,
which is a pain.  Because the main problem is this:

CREATE TABLE...

CREATE TYPE newtype

ALTER TABLE ADD COLUMN newtype

That always breaks...

CHris




pgsql-hackers by date:

Previous
From: "Christopher Kings-Lynne"
Date:
Subject: Re: contrib compilation probs
Next
From: Tom Lane
Date:
Subject: Re: pg_dump ordering