Re: Any "guide to indexes" exists? - Mailing list pgsql-general

From Tom Lane
Subject Re: Any "guide to indexes" exists?
Date
Msg-id 7218.1178554023@sss.pgh.pa.us
Whole thread Raw
In response to Re: Any "guide to indexes" exists?  ("Jan Bilek" <bilekj@gmail.com>)
List pgsql-general
"Jan Bilek" <bilekj@gmail.com> writes:
> Ok - btree is fine, but sometimes could be better to use gist - my question
> is: when is that "sometimes"? Unless i know how to use the indexes, then
> they are useless for me - am i right?

gist and gin are for indexing queries that btree is not capable of
dealing with, ie, the WHERE clauses are not simple scalar equality
or range checks.  All you need to pay attention to is whether the
index has an operator class that includes the WHERE operator you
want to use.

            regards, tom lane

pgsql-general by date:

Previous
From: Greg Janée
Date:
Subject: Re: query not using index
Next
From: Rich Shepard
Date:
Subject: Date Math