Re: Why should such a simple query over indexed columns be so slow?

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Alessandro Gagliardi <alessandro(at)path(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Why should such a simple query over indexed columns be so slow?
Date: 2012-01-30 22:19:16
Message-ID: CAOR=d=07Q38eV5ifJE5deSxxyiza1Nm5dVW0VT5-T8__cLWHHQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, Jan 30, 2012 at 2:55 PM, Alessandro Gagliardi
<alessandro(at)path(dot)com> wrote:
> I set random_page_cost to 2 (with enable_seqscan on) and get the same
> performance I got with enable_seqscan off.
> So far so good. Now I just need to figure out how to set it globally. :-/

alter database set random_page_cost=2.0;

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2012-01-30 22:24:24 Re: Why should such a simple query over indexed columns be so slow?
Previous Message Alessandro Gagliardi 2012-01-30 21:55:00 Re: Why should such a simple query over indexed columns be so slow?