Re: left outer join terrible slow compared to inner join - Mailing list pgsql-general

From Jonathan Bartlett
Subject Re: left outer join terrible slow compared to inner join
Date
Msg-id Pine.GSU.4.44.0308290750290.6475-100000@eskimo.com
Whole thread Raw
In response to Re: left outer join terrible slow compared to inner join  (Thomas Beutin <tyrone@laokoon.IN-Berlin.DE>)
List 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


pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Optimizer isn't perfect
Next
From: Francois Suter
Date:
Subject: Re: Visual database structure browser for postgresql?