Re: MERGE: performance advices

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Richard Broersma" <richard(dot)broersma(at)gmail(dot)com>
Cc: "Steve Clark" <sclark(at)netwolves(dot)com>, "Ivan Sergio Borgonovo" <mail(at)webthatworks(dot)it>, PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: MERGE: performance advices
Date: 2008-09-02 17:58:07
Message-ID: 16704.1220378287@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Richard Broersma" <richard(dot)broersma(at)gmail(dot)com> writes:
> There is one possible alteration that may or many not improve
> performance. This would be to replace the EXISTS with a LEFT JOIN
> WHERE IS NOT NULL;

That changes the behavior, doesn't it? Or is event_log_no a unique
key for Myevents? I think what you want is to make the EXISTS an IN
instead.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Clark 2008-09-02 18:16:29 Re: MERGE: performance advices
Previous Message Steve Clark 2008-09-02 17:37:14 Re: MERGE: performance advices