Re: [NOVICE] SET CONSTRAINTS question...

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Michael Paesold <mpaesold(at)gmx(dot)at>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: [NOVICE] SET CONSTRAINTS question...
Date: 2002-07-22 15:40:48
Message-ID: 20020722083835.D13666-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Ecitizen 2002-07-22 16:11:22 Free 4GL Compiler, Informix-Postgress support
Previous Message Michael Paesold 2002-07-22 15:26:29 [NOVICE] SET CONSTRAINTS question...