Re: LEFT JOINs takes forever...almost.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Niclas Gustafsson" <niclas(dot)gustafsson(at)codesense(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: LEFT JOINs takes forever...almost.
Date: 2002-09-14 14:59:35
Message-ID: 26720.1032015575@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Niclas Gustafsson" <niclas(dot)gustafsson(at)codesense(dot)com> writes:
> Can someone please explain why the first query is 3000 times slower?
> Surely there must be a any way to speed it up?

You're forcing a poor join order. See
http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/explicit-joins.html

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Adam Witney 2002-09-14 16:04:11 Problem starting postmaster
Previous Message shreedhar 2002-09-14 04:27:28 Is it possible to get the return value of trigger function using PHP or any other method.