Re: 8.4.0 bug - failure to enforce a foreign key constraint - Mailing list pgsql-general

From Radoslaw Zielinski
Subject Re: 8.4.0 bug - failure to enforce a foreign key constraint
Date
Msg-id 20090813172239.GA4246@bzium
Whole thread Raw
In response to Re: 8.4.0 bug - failure to enforce a foreign key constraint  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
List pgsql-general
Grzegorz Jaśkiewicz <gryzman@gmail.com> [2009-08-13 14:23]:
> On Thu, Aug 13, 2009 at 12:36 PM, Radoslaw Zielinski<radek@pld-linux.org> wrote:
[...]
>>      "kandydaci_fk_id_rekordu" FOREIGN KEY (id_rekordu) REFERENCES rekordy(id) ON DELETE CASCADE
[...]
> since you do LEFT JOIN, indeed you can get r.id to be null.

There is a foreign key on this field, and it's the only one used in the
JOIN condition.  LEFT was only used to demonstrate the issue in a single
query.

--
Radosław Zieliński <radek@pld-linux.org>

Attachment

pgsql-general by date:

Previous
From: Sam Mason
Date:
Subject: Re: Can I get Field informations from system tables?
Next
From: kbarnard@kevinbarnard.net
Date:
Subject: Index utilization