Re: What type of index should I use? - Mailing list pgsql-general

From Dimitri Fontaine
Subject Re: What type of index should I use?
Date
Msg-id 87ocf3qwoz.fsf@hi-media-techno.com
Whole thread Raw
In response to What type of index should I use?  (Mike Christensen <mike@kitchenpc.com>)
Responses Re: What type of index should I use?  (Adrian von Bidder <avbidder@fortytwo.ch>)
List pgsql-general
Mike Christensen <mike@kitchenpc.com> writes:

> I have a varying(200) text column that I need to be able to do lookups
> on very fast (WHERE col = 'foo')

Btree is what to use here. GIN covers cases where you index arrays.

>   I estimate the table will hold around 5,000 rows, never any more.

It could be that you're better off without any index, depending on the
size of rows you put in there, and the overall memory usage patterns you
have.

Regards,
--
dim

pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: How to flatten a database table
Next
From: Dimitri Fontaine
Date:
Subject: Re: High Availability with Postgres