Re: BUG #17085: Should be able to create an index without referential checking when ON DELETE NO ACTION - Mailing list pgsql-bugs

From David G. Johnston
Subject Re: BUG #17085: Should be able to create an index without referential checking when ON DELETE NO ACTION
Date
Msg-id CAKFQuwYsRq=Px1ttzRJB-z21UL_LVumVZHSNFUVoA=iS2zbScQ@mail.gmail.com
Whole thread Raw
In response to Re: BUG #17085: Should be able to create an index without referential checking when ON DELETE NO ACTION  (Pantelis Theodosiou <ypercube@gmail.com>)
List pgsql-bugs
On Tue, Jul 6, 2021 at 5:05 PM Pantelis Theodosiou <ypercube@gmail.com> wrote:
 
Transactions is referenced twice, once without correlation and secondly with correlation.
 

Yeah, the USING clause of DELETE is basically an INNER JOIN.  If you need an ANTI-JOIN you can write that via NOT EXISTS just like you would in a normal SELECT query.  You don't get the option to write an anti-join using a left join and testing for null.

David J.

pgsql-bugs by date:

Previous
From: Pantelis Theodosiou
Date:
Subject: Re: BUG #17085: Should be able to create an index without referential checking when ON DELETE NO ACTION
Next
From: Victor Porton
Date:
Subject: Re: BUG #17085: Should be able to create an index without referential checking when ON DELETE NO ACTION