Will Index improve the speed? - Mailing list pgsql-general

From Yonatan Ben-Nes
Subject Will Index improve the speed?
Date
Msg-id 2d0127b80708281537y1e5e8c64rfdf589479828e8c7@mail.gmail.com
Whole thread Raw
List pgsql-general
Hi all,

I got a table with many columns of data which got an index on one of the fields (Tsearch2 Gist).

I thought that maybe if I'll create a new table with 2 fields (primary key reference to the previous table & the index field from the previous table) and made the index on the index field, maybe then it will be faster to query the new smaller table and then left join the results to the first table in order to get the results.

Is that true or as I suspect the index is "in a way" a smaller table already which is handling it even better then my idea?

Thanks a lot in advance,
Yonatan

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Out of Memory - 8.2.4
Next
From: Michael Glaesemann
Date:
Subject: Re: Is there a better way to do this?