Re: Suggested fix for pg_dump - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Suggested fix for pg_dump
Date
Msg-id 4663.978892171@sss.pgh.pa.us
Whole thread Raw
In response to Re: Suggested fix for pg_dump  (The Hermit Hacker <scrappy@hub.org>)
Responses Re: Suggested fix for pg_dump  (The Hermit Hacker <scrappy@hub.org>)
Re: Suggested fix for pg_dump  (Philip Warner <pjw@rhyme.com.au>)
List pgsql-hackers
The Hermit Hacker <scrappy@hub.org> writes:
> Essentially, worst case scenario, we are going from 'broken->broken' ...

No, I don't think so.  The current pg_dump code is only broken if
you've renamed a column involved in a foreign-key dependency (if I
understood the thread correctly).  But Philip is proposing to change
pg_dump to rely on alter table add constraint for *all* PRIMARY KEY
constructs.  So if alter table add constraint fails, it could break
cases that had nothing to do with either foreign keys or renamed
columns.

I'm not really arguing not to make the change.  I am saying there's
an area here that we'd better take care to test during beta cycle...
        regards, tom lane


pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: Suggested fix for pg_dump
Next
From: The Hermit Hacker
Date:
Subject: Re: Suggested fix for pg_dump