foreign key constraints and alter table

From: John DeSoi <jdesoi(at)planetc(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: foreign key constraints and alter table
Date: 2003-02-18 01:38:58
Message-ID: p05200f01ba773bb97555@[192.168.1.7]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

If I'm reading the docs correctly, I should be able to write:

ALTER TABLE mytable ADD ptr INT4 REFERENCES othertable ON DELETE SET NULL

but when I look in pg_constraint table (pg 7.3) I don't see any kind
of foreign key constraint.

BTW, are the PDF versions of the 7.3 Docs? I only see 7.2 on the web site.

Thanks!

John DeSoi, Ph.D.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-02-18 01:46:17 Re: Index not used with IS NULL
Previous Message Tom Lane 2003-02-18 01:30:32 Re: TIMESTAMP WITH( OUT)? TIME ZONE indexing/type choice...