ALTER TABLE...ADD CONSTRAINT? - Mailing list pgsql-hackers

From Philip Warner
Subject ALTER TABLE...ADD CONSTRAINT?
Date
Msg-id 3.0.5.32.20001123141238.026db610@mail.rhyme.com.au
Whole thread Raw
In response to RE: pg_dump / Unique constraints  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Responses RE: ALTER TABLE...ADD CONSTRAINT?  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
List pgsql-hackers
At 10:21 23/11/00 +0800, Christopher Kings-Lynne wrote:
>
>I'm just asking, because I'm still trying to find something small and
>self-contained I can work on!
>

Is anybody working on:
   alter table <table> add constraint <name> primary key(column,...);

or
   alter table <table> add constraint <name> unique(column,...);

or
   alter table drop constraint

I guess this is not really a small task as it relates to unifying
constraint handling, but for the PK & unique constraints at least, we must
already have code that does the work - all(?) that has to happen is to make
sure the ALTER command calls it...is that right?


----------------------------------------------------------------
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: Don Baccus
Date:
Subject: OpenACS datamodel vs. current PG 7.1 sources
Next
From: "Christopher Kings-Lynne"
Date:
Subject: RE: ALTER TABLE...ADD CONSTRAINT?