Re: 8.4.0 bug - failure to enforce a foreign key constraint

From: Radoslaw Zielinski <radek(at)pld-linux(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: 8.4.0 bug - failure to enforce a foreign key constraint
Date: 2009-08-13 17:22:39
Message-ID: 20090813172239.GA4246@bzium
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com> [2009-08-13 14:23]:
> On Thu, Aug 13, 2009 at 12:36 PM, Radoslaw Zielinski<radek(at)pld-linux(dot)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(at)pld-linux(dot)org>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-08-13 17:36:45 Re: Encoding question when dumping/restoring databases for upgrade
Previous Message Sam Mason 2009-08-13 17:22:23 Re: Can I get Field informations from system tables?