Re: Postgres restore help

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alessandro Gagliardi <alessandro(at)path(dot)com>
Cc: Bartosz Dmytrak <bdmytrak(at)eranet(dot)pl>, Piyush Lenka <lenka(dot)piyush(at)gmail(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Postgres restore help
Date: 2012-02-28 21:49:51
Message-ID: 26955.1330465791@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Alessandro Gagliardi <alessandro(at)path(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Bartosz Dmytrak 2012-02-28 22:25:50 Re: Postgres restore help
Previous Message Alessandro Gagliardi 2012-02-28 21:34:54 Re: Postgres restore help