Re: Queries taking ages in PG 8.1, have been much faster in PG<=8.0

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Markus Wollny" <Markus(dot)Wollny(at)computec(dot)de>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Queries taking ages in PG 8.1, have been much faster in PG<=8.0
Date: 2005-12-05 15:11:41
Message-ID: 29616.1133795501@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Markus Wollny" <Markus(dot)Wollny(at)computec(dot)de> writes:
>> Could we see the pg_stats row for answer.session_id in both
>> 8.0 and 8.1?

> Here you are:

> 8.1:
> Correlation -0.0736492

> 8.0.3:
> Correlation -0.237136

Interesting --- if the 8.1 database is a dump and restore of the 8.0,
you'd expect the physical ordering to be similar. Why is 8.1 showing
a significantly lower correlation? That has considerable impact on the
estimated cost of an indexscan (plain not bitmap), and so it might
explain why 8.1 is mistakenly avoiding the indexscan ...

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Markus Wollny 2005-12-05 15:40:38 Re: Queries taking ages in PG 8.1, have been much faster in PG<=8.0
Previous Message Tom Lane 2005-12-05 15:02:38 Re: BLCKSZ