Re: quick question: index optimisations on small tables

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Andrew Snow <andrew(at)modulus(dot)org>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: quick question: index optimisations on small tables
Date: 2001-08-30 17:32:39
Message-ID: Pine.LNX.4.30.0108301931420.679-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andrew Snow writes:

> Since it can get the answer straight out of the index, and if there are
> potentially numerous rows, looking up a b-tree is faster than a linear
> search?

You can't get the "answer straight out of the index". You always need to
check back in the real table to see whether the row is visible to your
transaction.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kirk Strauser 2001-08-30 17:45:14 Re: A903-35A9-76AF : CONFIRM from pgsql-general (subscribe)
Previous Message Arne Weiner 2001-08-30 17:09:34 Re: quick question: index optimisations on small tables