X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B5B783A5353 for ; Mon, 22 Nov 2004 19:58:29 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53384-08 for ; Mon, 22 Nov 2004 19:58:23 +0000 (GMT) Received: from web51302.mail.yahoo.com (web51302.mail.yahoo.com [206.190.38.168]) by svr1.postgresql.org (Postfix) with SMTP id 403BF3A534B for ; Mon, 22 Nov 2004 19:58:10 +0000 (GMT) Received: (qmail 14072 invoked by uid 60001); 22 Nov 2004 19:58:01 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=LXEmHC9gRDQ2aoGxcNuUBPJnbSfVALFZD0ZE/7Cr+b1VkntPF0MZj3SmSZwcFIdxgrvB4pxjg3Scp1ZYhNdFXUZsj8A6sLuMwSe5fsgb2c/+N9UexDdLiIHc8X4Cph/YxfV9qTGWDdsodG86RQtyjVZO/qhvqRrwI8dmHmYLrQc= ; Message-ID: <20041122195801.14066.qmail@web51302.mail.yahoo.com> Received: from [65.218.182.242] by web51302.mail.yahoo.com via HTTP; Mon, 22 Nov 2004 11:58:01 PST Date: Mon, 22 Nov 2004 11:58:01 -0800 (PST) From: sarlav kumar Subject: Re: help needed -- sequential scan problem To: pgsql-performance@postgresql.org Cc: sarlav kumar In-Reply-To: <200411221157.38900.josh@agliodbs.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-366798334-1101153481=:13699" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests=HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200411/334 X-Sequence-Number: 9288 --0-366798334-1101153481=:13699 Content-Type: text/plain; charset=us-ascii Hi Josh, Can you tell me in what way it affects performance? And How do I decide what value to set for the random_page_cost? Does it depend on any other factors? Thanks, Saranya Josh Berkus wrote: Sarlav, > 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? It's a parameter in your postgresql.conf file. After you test it, you will want to change it there and reload the server (pg_ctl reload). However, you can test it on an individual connection: SET random_page_cost=2.5 (the default is 4.0) -- --Josh Josh Berkus Aglio Database Solutions San Francisco __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --0-366798334-1101153481=:13699 Content-Type: text/html; charset=us-ascii
Hi Josh,
 
Can you tell me in what way it affects performance? And How do I decide what value to set for the random_page_cost? Does it depend on any  other factors?
 
Thanks,
Saranya

Josh Berkus <josh@agliodbs.com> wrote:
Sarlav,

> 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?

It's a parameter in your postgresql.conf file. After you test it, you will
want to change it there and reload the server (pg_ctl reload).

However, you can test it on an individual connection:
SET random_page_cost=2.5
(the default is 4.0)

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com --0-366798334-1101153481=:13699--