pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Boley <npboley@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: Jesper Krogh <jesper@krogh.cc>
Cc: pgsql-performance@postgresql.org
Subject: Re: reducing random_page_cost from 4 to 2 to force index scan
Date: Mon, 16 May 2011 12:10:37 -0700
Message-ID: <BANLkTimOEkO55L4g8u7-zyXwTnxFDjhpbA@mail.gmail.com> (raw)
In-Reply-To: <18337.1305566693@sss.pgh.pa.us>
References: <BANLkTikZhYc+h1=YDJfXwZEZc1tN3_VwCg@mail.gmail.com>
	<4DB6F4BB020000250003CEB9@gw.wicourts.gov>
	<BANLkTindB68ogMg8zrR7GrYEV+mQQddj0A@mail.gmail.com>
	<BANLkTik6OaVkJGEjs5--vcynUE36mWbzbg@mail.gmail.com>
	<2823.1305314437@sss.pgh.pa.us>
	<BANLkTimTqXAy7_KqQz_OW1RvMbDd9ojfqg@mail.gmail.com>
	<4DCD90F5.2010501@agliodbs.com>
	<BANLkTikcVUeRfocJPe_W+jfi5k1+gcLnxg@mail.gmail.com>
	<4DD0195A.9040305@agliodbs.com>
	<BANLkTika=a95=Pm97Evi-Q7e_9vs4FnkCQ@mail.gmail.com>
	<4DD07855.8080907@postnewspapers.com.au>
	<4DD07B4E.1020503@2ndquadrant.com>
	<4DD0AB16.5060808@krogh.cc>
	<4DD0ACD0.1090801@krogh.cc>
	<BANLkTimw2xWYQ_Hz4vtLXx-2nZRjRfoMMw@mail.gmail.com>
	<18337.1305566693@sss.pgh.pa.us>

> The accesses to an index are far more likely to be clustered than the
> accesses to the underlying table, because the index is organized in a
> way that's application-meaningful and the table not so much.

So, to clarify, are you saying that if query were actually requesting
rows uniformly random, then there would be no reason to suspect that
index accesses would have hotspots? It seems like the index structure
( ie, the top node in b-trees ) could also get in the way.

Best,
Nathan



view thread (43+ messages)  latest in thread

Message-ID: <BANLkTimOEkO55L4g8u7-zyXwTnxFDjhpbA@mail.gmail.com>
Permalink:  ../BANLkTimOEkO55L4g8u7-zyXwTnxFDjhpbA@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTimOEkO55L4g8u7-zyXwTnxFDjhpbA@mail.gmail.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: npboley@gmail.com, tgl@sss.pgh.pa.us, jeff.janes@gmail.com, jesper@krogh.cc
  Subject: Re: reducing random_page_cost from 4 to 2 to force index scan
  In-Reply-To: <BANLkTimOEkO55L4g8u7-zyXwTnxFDjhpbA@mail.gmail.com>
  References: <BANLkTikZhYc+h1=YDJfXwZEZc1tN3_VwCg@mail.gmail.com> <4DB6F4BB020000250003CEB9@gw.wicourts.gov> <BANLkTindB68ogMg8zrR7GrYEV+mQQddj0A@mail.gmail.com> <BANLkTik6OaVkJGEjs5--vcynUE36mWbzbg@mail.gmail.com> <2823.1305314437@sss.pgh.pa.us> <BANLkTimTqXAy7_KqQz_OW1RvMbDd9ojfqg@mail.gmail.com> <4DCD90F5.2010501@agliodbs.com> <BANLkTikcVUeRfocJPe_W+jfi5k1+gcLnxg@mail.gmail.com> <4DD0195A.9040305@agliodbs.com> <BANLkTika=a95=Pm97Evi-Q7e_9vs4FnkCQ@mail.gmail.com> <4DD07855.8080907@postnewspapers.com.au> <4DD07B4E.1020503@2ndquadrant.com> <4DD0AB16.5060808@krogh.cc> <4DD0ACD0.1090801@krogh.cc> <BANLkTimw2xWYQ_Hz4vtLXx-2nZRjRfoMMw@mail.gmail.com> <18337.1305566693@sss.pgh.pa.us> <BANLkTimOEkO55L4g8u7-zyXwTnxFDjhpbA@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