From: Gaetano Mendola <mendola@bigfoot.com>
To: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Cc: Claus Guttesen <kometen@gmail.com>
Subject: Re: Wrong plan sequential scan instead of an index one
Date: Fri, 30 Mar 2007 12:08:26 +0200
Message-ID: <460CE19A.3060909@bigfoot.com> (raw)
In-Reply-To: <b41c75520703300251oe916648r75c16c1bf70cd10@mail.gmail.com>
References: <460CD941.6080303@bigfoot.com>
<b41c75520703300251oe916648r75c16c1bf70cd10@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Claus Guttesen wrote:
>> 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?
I have tuned that number already at 2.5, lowering it to 2 doesn't change
the plan.
Regards
Gaetano Mendola
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGDOGa7UpzwH2SGd4RAjvaAKDAbz/vxwyOBPCILGpw8rBSvTFMtACfRPBe
yMge0RFfww0ef7xrGBLal7o=
=k+RM
-----END PGP SIGNATURE-----
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: mendola@bigfoot.com, kometen@gmail.com
Subject: Re: Wrong plan sequential scan instead of an index one
In-Reply-To: <460CE19A.3060909@bigfoot.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