Re: Performance differences 7.1 to 7.3

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Performance differences 7.1 to 7.3
Дата
Msg-id 1103065799.22049.29.camel@state.g2switchworks.com
обсуждение исходный текст
Ответ на Re: Performance differences 7.1 to 7.3  ("Jimmie H. Apsey" <japsey@futuredental.com>)
Список pgsql-general
On Tue, 2004-12-14 at 16:50, Jimmie H. Apsey wrote:
> I think my indexes are OK.
>
> I have no settings for 'shared memory buffers' in postgresql.conf on
> either system.  Both systems have same, i.e.
> #sort_mem = 512
> #shared_buffers = 2*max_connections # min 16
> #fsync = true
>
> Do you, or any of you, have any other suggestions for why such a
> simple "select count(*) from tpv;" should take six times as long on
> our latest and greatest dual processor server with almost the latest
> and greatest postgresql?  View tpv is a three table join which takes
> 3.38 seconds on the 'old' system and 18.09 seconds on the 'new'
> system.

You really need to do an "explain analyze <query>" where <query> is the
query used to create the view.  Post the output of that here.  My guess
is one is using indexes to match up rows, the other is using seq scans.
Or something like that.

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

Предыдущее
От: "Jimmie H. Apsey"
Дата:
Сообщение: Re: Performance differences 7.1 to 7.3
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Performance differences 7.1 to 7.3