Re: FK creation -- "ON DELETE NO ACTION" seems to be a no-op

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Webb Sprague <webb(dot)sprague(at)gmail(dot)com>
Cc: General PostgreSQL List <pgsql-general(at)postgresql(dot)org>
Subject: Re: FK creation -- "ON DELETE NO ACTION" seems to be a no-op
Date: 2007-12-21 20:33:22
Message-ID: 20071221203321.GD13293@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Webb Sprague escribió:

> It is not updating the table correctly to reflect the "no action".
> After \d currentsessions (and some editing) I get the following,
> which, as I understand it, should say something about the "ON DELETE
> NO ACTION":
>
> ... "currentsessions_username_fkey" FOREIGN KEY (username)
> REFERENCES authorizedusers(username) ON UPDATE CASCADE

Hmm, NO ACTION is the default.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message brian 2007-12-21 20:35:56 Re: self ordering list
Previous Message Bryan Wilkerson 2007-12-21 20:19:51 self ordering list