Re: quick question: index optimisations on small tables - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: quick question: index optimisations on small tables
Date
Msg-id Pine.LNX.4.30.0108301931420.679-100000@peter.localdomain
Whole thread Raw
In response to quick question: index optimisations on small tables  ("Andrew Snow" <andrew@modulus.org>)
List 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@gmx.net   http://funkturm.homeip.net/~peter


pgsql-general by date:

Previous
From: "Jeff Eckermann"
Date:
Subject: Re: Solution found! was Re: Finding the number of rows affected by UPDATE or INSERT?
Next
From: Guy Fraser
Date:
Subject: mx is needed by postgresql-python-7.1.3-1PGDG