pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Wilson <david.t.wilson@gmail.com>
Cc: Mladen Gogala <mladen.gogala@vmsinfo.com>
Cc: Kenneth Marshall <ktm@rice.edu>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Postgres 9.0 has a bias against indexes
Date: Thu, 27 Jan 2011 11:40:47 -0500
Message-ID: <17268.1296146447@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTinjSQ4+56fZtDELXZ7uU49evc8U-Z0WV6U4FH6U@mail.gmail.com>
References: <4D419214.8060003@vmsinfo.com>
	<20110127154539.GE6475@aart.is.rice.edu>
	<4D41959B.8020901@vmsinfo.com>
	<AANLkTinjSQ4+56fZtDELXZ7uU49evc8U-Z0WV6U4FH6U@mail.gmail.com>

David Wilson <david.t.wilson@gmail.com> writes:
> You're still using a 14 row table, though.

Exactly.  Please note what it says in the fine manual:

    It is worth noting that EXPLAIN results should not be extrapolated
    to situations other than the one you are actually testing; for
    example, results on a toy-sized table cannot be assumed to apply to
    large tables. The planner's cost estimates are not linear and so it
    might choose a different plan for a larger or smaller table. An
    extreme example is that on a table that only occupies one disk page,
    you'll nearly always get a sequential scan plan whether indexes are
    available or not. The planner realizes that it's going to take one
    disk page read to process the table in any case, so there's no value
    in expending additional page reads to look at an index.


			regards, tom lane



view thread (24+ messages)  latest in thread

Message-ID: <17268.1296146447@sss.pgh.pa.us>
Permalink:  ../17268.1296146447@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17268.1296146447@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, david.t.wilson@gmail.com, mladen.gogala@vmsinfo.com, ktm@rice.edu
  Subject: Re: Postgres 9.0 has a bias against indexes
  In-Reply-To: <17268.1296146447@sss.pgh.pa.us>

* 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