Re: Reconstructing FKs in pg_dump

From: "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Reconstructing FKs in pg_dump
Date: 2002-09-28 03:03:25
Message-ID: 008b01c2669b$9d369800$0a00a8c0@zeut2k
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
> However, if we are going to put that kind of knowledge into pg_dump,
> it would only be a small further step to have it dump these triggers
> as ALTER TABLE ADD CONSTRAINT commands instead. Which would be a lot
> better for forward compatibility than dumping the raw triggers.

There was some talk of adding Rod Taylor's identifies upgrade script to
contrib, or mentioning it in the release. I think that it upgrades Foreign
key, Unique, and Serial constraints, is that relevant here? Could it be
used (or modified) to handle this situation? Just a thought.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2002-09-28 04:39:27 version mismatch detection doesn't work
Previous Message Martijn van Oosterhout 2002-09-28 02:05:58 Re: query speed depends on lifetime of frozen db?