Re: postgres 8 settings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: postgres 8 settings
Дата
Msg-id 25668.1110646636@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: postgres 8 settings  ("vinita bansal" <sagivini@hotmail.com>)
Список pgsql-general
"vinita bansal" <sagivini@hotmail.com> writes:
> Also, a particular query which was taking a min or less with postgres 7 is
> taking 15 mins now.
> Here is the query plan for the query both for postgres 7.4.6 and postgres 8:

It's hard to say anything about this when you only provided EXPLAIN and
not EXPLAIN ANALYZE results.  The rowcount estimates are obviously a lot
different between 7.4 and 8.0, but are they more accurate or less so?
Can't tell from EXPLAIN.

> Why is this happening.

Have you vacuumed and/or analyzed all of the tables used in the query?
It looks like a statistical estimation problem to me.  People frequently
complain that a new version has horrible performance because they forgot
to analyze their database after migrating ...

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Christian Kratzer
Дата:
Сообщение: Re: partitionning
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: Best practices: Handling Daylight-saving time