Re: 7.0.2 issues / Geocrawler - Mailing list pgsql-hackers

From The Hermit Hacker
Subject Re: 7.0.2 issues / Geocrawler
Date
Msg-id Pine.BSF.4.21.0007121307501.1325-100000@thelab.hub.org
Whole thread Raw
In response to Re: 7.0.2 issues / Geocrawler  (Tim Perdue <tperdue@valinux.com>)
List pgsql-hackers
On Wed, 12 Jul 2000, Tim Perdue wrote:

> "Ross J. Reedstrom" wrote:
> > Tim, why are you building a multikey index, especially one containing a
> > large text field? It's almost never a win to index a text field, unless
> 
> This is not a key on a text field.
> 
> The keys are:
> 
> mail_list (example, the PHP mailing list=1)
> mail_year (1999)
> mail_month (July=7)
> 
> Yes it is a multi-key index, and the matches are exact.
> 
> Someone else asked why I have separated these fields out from the
> mail_date.
> 
> If I didn't, and I wanted to see the messages for this month, I'd have
> to regex and that would overwhelm the database.

if you did it as a proper date field, you can use stuff like 'date_part'
and 'date_trunc' to pull out a particular month, year, etc ...




pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: 7.0.2 issues / Geocrawler
Next
From: The Hermit Hacker
Date:
Subject: Re: Serious Performance Loss in 7.0.2??