Re: [NOVICE] SET CONSTRAINTS question... - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: [NOVICE] SET CONSTRAINTS question...
Date
Msg-id 20020722083835.D13666-100000@megazone23.bigpanda.com
Whole thread Raw
In response to [NOVICE] SET CONSTRAINTS question...  ("Michael Paesold" <mpaesold@gmx.at>)
List pgsql-sql
> CREATE SEQUENCE conn_id_seq;
> CREATE TABLE conn (
>  id INTEGER NOT NULL DEFAULT nextval('conn_id_seq'),
>  name VARCHAR(40),
>  CONSTRAINT conn_friend_fkey FOREIGN KEY(name)
>    REFERENCES friend(name)
>    ON UPDATE CASCADE
>    ON DELETE RESTRICT

I believe we interpreted restrict as being such that you
can't defer it.  No action specification for delete
probably would do what you wanted. (We may also be wrong
about restrict, but the above would be a workaround in any case)




pgsql-sql by date:

Previous
From: "Michael Paesold"
Date:
Subject: [NOVICE] SET CONSTRAINTS question...
Next
From: "Josh Berkus"
Date:
Subject: Re: Editor for pgsql