pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Michael Paesold <mpaesold@gmx.at>
Cc: pgsql-sql@postgresql.org
Subject: Re: [NOVICE] SET CONSTRAINTS question...
Date: Mon, 22 Jul 2002 08:40:48 -0700 (PDT)
Message-ID: <20020722083835.D13666-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <00de01c23194$28c25360$c9bab23e@beeblebrox>


> 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)





view thread (2+ messages)

Message-ID: <20020722083835.D13666-100000@megazone23.bigpanda.com>
Permalink:  ../20020722083835.D13666-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20020722083835.D13666-100000@megazone23.bigpanda.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, mpaesold@gmx.at
  Subject: Re: [NOVICE] SET CONSTRAINTS question...
  In-Reply-To: <20020722083835.D13666-100000@megazone23.bigpanda.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox