Question about clustering multiple columns - Mailing list pgsql-general

From Benjamin Arai
Subject Question about clustering multiple columns
Date
Msg-id 002e01c68f03$05f00e10$6501a8c0@uni
Whole thread Raw
Responses Re: Question about clustering multiple columns
List pgsql-general
Hi,
 
I have a database where there are three columns (name,date,data).  The queries are almost always something like SELECT date,data FROM table WHERE name=blah AND date > 1/1/2005 AND date < 1/1/2006;.  I currently have three B-tree indexes, one for each of the columns.  Is clustering on date index going to be what I want, or do I need a index that contains both name and date?
 
Attachment

pgsql-general by date:

Previous
From: John Gunther
Date:
Subject: Forcing backslash to be treated as ordinary string character
Next
From: "jdwatson1@gmail.com"
Date:
Subject: Re: Searching BLOB - Lucene setup & problem