From: gnari <gnari@simnet.is>
To: sarlav kumar <sarlavk@yahoo.com>
To: pgsql-performance@postgresql.org
Subject: Re: help needed -- sequential scan problem
Date: Mon, 22 Nov 2004 20:01:42 -0000
Message-ID: <013401c4d0ce$15e276e0$0100000a@wp2000> (raw)
References: <20041122194125.8040.qmail@web51302.mail.yahoo.com>
From: "sarlav kumar" <sarlavk@yahoo.com>
> [Tom:]
> >You might get some results from increasing the
> >statistics target for merchant_purchase.merchant_id.
>
> Do I have to use vacuum analyze to update the statistics? If so, I have
already tried that and it doesn't seem to help.
alter table merchant_purchase alter column merchant_id set statistics 500;
analyze merchant_purchase;
>
> >If that doesn't help, I'd think about reducing random_page_cost a little
bit.
>
> I am sorry, I am not aware of what random_page_cost is, as I am new to
Postgres. What does it signify and how do I reduce random_page_cost?
set random_page_cost = 3;
explain analyse <query>
if it is an improvement, consider setting the value in your postgresql.conf,
but remember that this may affect other queries too.
gnari
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: gnari@simnet.is, sarlavk@yahoo.com
Subject: Re: help needed -- sequential scan problem
In-Reply-To: <013401c4d0ce$15e276e0$0100000a@wp2000>
* 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