Re: pg_dump / Unique constraints - Mailing list pgsql-hackers

From Philip Warner
Subject Re: pg_dump / Unique constraints
Date
Msg-id 3.0.5.32.20001122192645.02938470@mail.rhyme.com.au
Whole thread Raw
In response to pg_dump / Unique constraints  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Responses RE: pg_dump / Unique constraints  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
List pgsql-hackers
At 15:50 22/11/00 +0800, Christopher Kings-Lynne wrote:
>I've been examining the pg_dump source and output, and I've come to the
>conclusion that I can modify it so that UNIQUE constraints appear as part of
>the CREATE TABLE statement, rather than as a separate CREATE INDEX.
...
>Is there any problem with me working on this?

I actually don't think it's a good idea to force things to work that way. 

Perhaps as an *option*, but even then I'd be inclined to append them as a
series of 'ALTER TABLE ADD CONSTRAINT...' statements.


----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/


pgsql-hackers by date:

Previous
From: "Christopher Kings-Lynne"
Date:
Subject: pg_dump / Unique constraints
Next
From: "Christopher Kings-Lynne"
Date:
Subject: RE: pg_dump / Unique constraints