Re: [HACKERS] Beta for 4:30AST ... ?

From: Don Baccus <dhogaza(at)pacifier(dot)com>
To: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: scrappy(at)hub(dot)org, tgl(at)sss(dot)pgh(dot)pa(dot)us, webmaster(at)postgreSQL(dot)org, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Beta for 4:30AST ... ?
Date: 2000-02-22 05:15:05
Message-ID: 3.0.1.32.20000221211505.007a7d10@mail.pacifier.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 01:45 PM 2/22/00 +0900, Tatsuo Ishii wrote:

>> Those are the two major user-visible loose ends with this feature.

>What about ALTER TABLE table DROP CONSTRAINT? I see this:
>
>alter table t1 drop constraint t1_fk cascade;
>ERROR: ALTER TABLE / DROP CONSTRAINT is not implemented
>
>Note that we seem to have ALTER TABLE table ADD CONSTRAINT, though.

"ALTER TABLE ... DROP CONSTRAINT" I view as being a more general
problem not simply restricted to referential integrity. My comment
was meant to be strictly interpreted within the realm of RI. Obviously,
general dropping of columns and constraints needs to be solved, but these
aren't RI issues specifically.

And, no, you don't have ALTER TABLE ... ADD CONSTRAINT. What you have
is the ability to add foreign key constraints only. When this was
added, we (Stephan Szabo, myself, and Jan Wieck) discussed doing
general constraints, too, but Jan pointed out that we were all busy
with RI-specific stuff and that we should concentrate on those issue.
A good call, IMO, as I was buried in trying to understand "NO ACTION"
and "MATCH <unspecified>" at the same; Stephan was working on pg_dump;
and Jan was really busy with his real job. I only had one weekend to
pour into implementing the proper semantics for the RI triggers, and
as a result of our decision to concentrate on RI-specific issues was
able to complete the necessary work for fully SQL92 compliant "MATCH
<unspecified>" foreign keys.

However, Stephan's ALTER TABLE ... work to allow you to add foreign
keys should be fairly easy to extend to general constraints, he and
Jan discussed this a couple of weeks ago.

7.1 would seem to be the likely target for this.

- Don Baccus, Portland OR <dhogaza(at)pacifier(dot)com>
Nature photos, on-line guides, Pacific Northwest
Rare Bird Alert Service and other goodies at
http://donb.photo.net.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-02-22 05:31:34 Re: [HACKERS] Beta for 4:30AST ... ?
Previous Message Bruce Momjian 2000-02-22 05:09:11 Re: [HACKERS] Beta for 4:30AST ... ?