Re: Query about index usage

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Jayadevan M" <Jayadevan(dot)Maymala(at)ibsplc(dot)com>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Query about index usage
Date: 2010-06-11 15:25:15
Message-ID: 4C120F0B02000025000321BE@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Jayadevan M <Jayadevan(dot)Maymala(at)ibsplc(dot)com> wrote:

> One query about PostgreSQL's index usage. If I select just one
> column on which there is an index (or select only columns on which
> there is an index), and the index is used by PostgreSQL, does
> PostgreSQL avoid table access if possible?

PostgreSQL can't currently avoid reading the table, because that's
where the tuple visibility information is stored. We've been making
progress toward having some way to avoid reading the table for all
except very recently written tuples, but we're not there yet (in any
production version or in the 9.0 version to be released this
summer).

-Kevin

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Smith 2010-06-11 15:32:13 Re: Query about index usage
Previous Message Matthew Wakeling 2010-06-11 13:49:15 Re: slow query performance