Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 5AF5BB5D95B for ; Mon, 16 May 2011 13:45:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 25160-10 for ; Mon, 16 May 2011 16:45:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pw0-f46.google.com (mail-pw0-f46.google.com [209.85.160.46]) by mail.postgresql.org (Postfix) with ESMTP id 1676DB5DC12 for ; Mon, 16 May 2011 13:45:29 -0300 (ADT) Received: by pwi15 with SMTP id 15so2197985pwi.19 for ; Mon, 16 May 2011 09:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=brIyYGVLrUkxfc5SXnRP+qPpueECgKOUcg2SbWcpa6U=; b=uDaURXZbIUO4dHyzLswWlxRP80lK0/4tWzZCjZuo0nssq3PMyltLFGwyzDBKYEbas2 V1pcvDyfmMZutcr3/upo586qqvGaBmrFE0gkrp1I4CVApTzS74lEFt0RT0HLqvAdxqmN xtNGKbPbxvUKfG6JhQGTSkcLPgL0CkOW4jOZc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=v+aAljdNpUUdsnk5et2J9bxOmUP3KYCDzIUnXsAi3AQ1+SY4W7DEvoqfuUuYGyDWhv nHN66nCThH47SasGKY0Epwr7fBrOGB1n9Im15e5CSn84K0sdZYr0IwL7ac8Cvy5agXwz DAUDW9WB9L95nne5zacrgV4mzhNYTwW2tOSCo= MIME-Version: 1.0 Received: by 10.68.65.103 with SMTP id w7mr7823277pbs.127.1305564329298; Mon, 16 May 2011 09:45:29 -0700 (PDT) Received: by 10.68.49.7 with HTTP; Mon, 16 May 2011 09:45:28 -0700 (PDT) In-Reply-To: <4DD0ACD0.1090801@krogh.cc> References: <4DB6F4BB020000250003CEB9@gw.wicourts.gov> <2823.1305314437@sss.pgh.pa.us> <4DCD90F5.2010501@agliodbs.com> <4DD0195A.9040305@agliodbs.com> <4DD07855.8080907@postnewspapers.com.au> <4DD07B4E.1020503@2ndquadrant.com> <4DD0AB16.5060808@krogh.cc> <4DD0ACD0.1090801@krogh.cc> Date: Mon, 16 May 2011 09:45:28 -0700 Message-ID: Subject: Re: reducing random_page_cost from 4 to 2 to force index scan From: Jeff Janes To: Jesper Krogh Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201105/245 X-Sequence-Number: 43754 On Sun, May 15, 2011 at 9:49 PM, Jesper Krogh wrote: > > Ok, it may not work as well with index'es, since having 1% in cache may very > well mean that 90% of all requested blocks are there.. for tables in should > be more trivial. Why would the index have a meaningful hot-spot unless the underlying table had one as well? (Of course the root block will be a hot-spot, but certainly not 90% of all requests) Cheers, Jeff