From: Claus Guttesen <kometen@gmail.com>
To: Gaetano Mendola <mendola@bigfoot.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Wrong plan sequential scan instead of an index one
Date: Fri, 30 Mar 2007 11:51:03 +0200
Message-ID: <b41c75520703300251oe916648r75c16c1bf70cd10@mail.gmail.com> (raw)
In-Reply-To: <460CD941.6080303@bigfoot.com>
References: <460CD941.6080303@bigfoot.com>
> Hi all,
> take a look at those plans:
Try changing random_page_cost from the default 4 to 2 in postgresql.conf:
random_page_cost = 2
The default in postgresql is somewhat conservative. This setting
indicates for postgresql how fast your disks are, the lower the
faster.
Could this setting be changed to 2 as default rather than 4?
regards
Claus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: kometen@gmail.com, mendola@bigfoot.com
Subject: Re: Wrong plan sequential scan instead of an index one
In-Reply-To: <b41c75520703300251oe916648r75c16c1bf70cd10@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox