Re: left outer join terrible slow compared to inner join

From: Jonathan Bartlett <johnnyb(at)eskimo(dot)com>
To: Thomas Beutin <tyrone(at)laokoon(dot)IN-Berlin(dot)DE>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: left outer join terrible slow compared to inner join
Date: 2003-08-29 14:51:47
Message-ID: Pine.GSU.4.44.0308290750290.6475-100000@eskimo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> And doing the explicit cross join statement on o_kat_prod instead of
> ot_kat_prod gives the expected performance to me ( 7.42 msec instead
> of 7324.49 msec with EXPLAIN ANALYZE).
>
> Do i've any chance to get the same performance on the view?

I've had this problem and it was due to improper typing - It was a join on
an int8 column, which has to be explicitly cast if it's a parameter to the
query.

Jon

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Miquel van Smoorenburg 2003-08-29 14:52:29 Re: PostgreSQL upgrade -> fails to start server
Previous Message Greg Stark 2003-08-29 14:37:32 Optimizer isn't perfect