Re: pg_dump ordering

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_dump ordering
Date: 2003-08-01 03:44:42
Message-ID: 058201c357df$3f135160$2800a8c0@mars
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-08-01 03:47:02 Re: pg_dump ordering
Previous Message Christopher Kings-Lynne 2003-08-01 03:41:56 Re: contrib compilation probs