Question about antijoin

From: "dandl" <david(at)andl(dot)org>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Question about antijoin
Date: 2016-07-12 10:41:39
Message-ID: 002801d1dc29$fa2a96c0$ee7fc440$@andl.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> NOT EXISTS (SELECT NULL FROM dyr_pause_mot WHERE avlsnr = a.avlsnr)
>
> This can be executed as anti-join and is often more efficient.

This got my interest! It's of great interest to me to know how and when Postgres performs an anti-join (this being a significant omission from SQL).

Is this a reliable trigger: (NOT EXISTS <subselect>)?

Regards
David M Bennett FACS

Andl - A New Database Language - andl.org

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bjørn T Johansen 2016-07-12 11:16:05 Re: Slow SQL?
Previous Message Peter Olivier 2016-07-12 09:39:46 PostgreSQL FDW + Trigger on Remote DB = WARNING: there is no transaction in progress