Re: Postgres 8.3, four times slower queries?

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: Aaron Guyon <battlemage(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Postgres 8.3, four times slower queries?
Date: 2009-03-05 19:15:27
Message-ID: 603c8f070903051115h58643593rb5f6301f3d5cf988@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, Mar 5, 2009 at 1:57 PM, Kevin Grittner
<Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:
>>>> Aaron Guyon <battlemage(at)gmail(dot)com> wrote:
>> 8.3.3: 1195 ms
>> 8.2.12: 611 ms
>
> Could you send the non-commented lines from the postgresql.conf files
> from both installations?
>
> If feasible, update to the latest bug-fix version of 8.3.
>
> Also, if you haven't already done so, try setting effective_cache_size
> = '3GB' and random_page_cost = 2 for the 8.3 database and restart to
> see what kind of plan you get.

I still there's a problem with that index, now it's called
idx_payment_amount_payment_id. What do you get from this?

select * from pg_index where indexrelid =
'idx_payment_amount_payment_id'::regclass;

Have you tried:

reindex table payment_amount

...Robert

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Aaron Guyon 2009-03-05 19:58:09 Re: Postgres 8.3, four times slower queries?
Previous Message Kevin Grittner 2009-03-05 18:57:20 Re: Postgres 8.3, four times slower queries?