Re: 7.0 vs 7.1 running select count(*) FROM table WHERE (SELECT count(*) ) > 0; - Mailing list pgsql-general

From Joseph Shraibman
Subject Re: 7.0 vs 7.1 running select count(*) FROM table WHERE (SELECT count(*) ) > 0;
Date
Msg-id 3A9D85E6.7B591B54@selectacast.net
Whole thread Raw
In response to 7.0 vs 7.1 running select count(*) FROM table WHERE (SELECT count(*) ) > 0;  ("Rod Taylor" <rod.taylor@inquent.com>)
List pgsql-general
Tom Lane wrote:
>
> "Rod Taylor" <rod.taylor@inquent.com> writes:
> > Query on 7.0 on Ultra II took over 5 hours.  Query on 7.1 on x86 took
> > under 10 seconds.  Same data.
>
> Good ... I guess, because I'm not sure why the difference.  We haven't
> done very much in the optimizer since 7.0.  What are the full
> declarations of these tables and their indexes?
>
>                         regards, tom lane

Sometimes your production and development machines have different data
so behave differently.  With postgres this is more of a problem than in
general because of the planner.

RT: have you tried the same query with the same data on your development
machine with 7.0?

--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com

pgsql-general by date:

Previous
From: John Madden
Date:
Subject: how to vacuum from cron?
Next
From: Jean-Christophe Boggio
Date:
Subject: Performance tuning