Re: Postgres restore help - Mailing list pgsql-novice

From Tom Lane
Subject Re: Postgres restore help
Date
Msg-id 26955.1330465791@sss.pgh.pa.us
Whole thread Raw
In response to Re: Postgres restore help  (Alessandro Gagliardi <alessandro@path.com>)
List pgsql-novice
Alessandro Gagliardi <alessandro@path.com> writes:
> Argh! I can't believe I forgot the "LEFT". That's embarrassing. Anyway, I
> was wondering if a WHERE NOT EXISTS clause would be better. I'm still new
> to those, so didn't want to try to offer that as a solution, but I gather
> it can be more efficient than a JOIN in some cases.

Given a reasonably recent PG version, it should be exactly the same ---
the planner will translate both of those into anti-joins.

            regards, tom lane

pgsql-novice by date:

Previous
From: Alessandro Gagliardi
Date:
Subject: Re: Postgres restore help
Next
From: Bartosz Dmytrak
Date:
Subject: Re: Postgres restore help