Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

pgsql-novice by date

Next:From: Bartosz DmytrakDate: 2012-02-28 22:25:50
Subject: Re: Postgres restore help
Previous:From: Alessandro GagliardiDate: 2012-02-28 21:34:54
Subject: Re: Postgres restore help

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group