Re: postgres FROM clause problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Paolo Tavalazzi <ptavalazzi(at)charta(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: postgres FROM clause problem
Date: 2004-03-10 15:54:46
Message-ID: 6971.1078934086@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Paolo Tavalazzi <ptavalazzi(at)charta(dot)it> writes:
> I have two query that they are different only for order of the tables
> in FROM lclause , but give back different query plan :

Hm, seems like the planner is making wacko estimates in the second case.
You didn't say what data types are involved in this query --- are any of
the join columns int8 or float8 or timestamp? If so you might be
getting bitten by the 7.4 pg_statistic alignment bug. Please follow the
repair procedures suggested in the 7.4.2 release notes:
http://developer.postgresql.org/docs/postgres/release.html#RELEASE-7-4-2
and see if that improves matters.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Nagy 2004-03-10 16:03:34 Re: More Deadlock Detection on Insert
Previous Message Bill Moran 2004-03-10 15:52:12 Re: Moving from 7.3.4 to 7.4.x?