Re: Working with huge amount of data.

From: Vivek Khera <vivek(at)khera(dot)org>
To: Postgres General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Working with huge amount of data.
Date: 2008-02-11 15:46:21
Message-ID: 96843CC8-0032-4587-A549-962BCED4238E@khera.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Feb 11, 2008, at 10:37 AM, Mario Lopez wrote:

> The problem arises with the second type of queries, where there are
> no possible partitions and that the search keywords are not known, I
> have tried making indexes on the letter it ends with, or indexes
> that specify that it contains the letter specified but none of them
> work the planifier only make sequential scans over the table.

Postgres doesn't use indexes on prefix-wildcard searches like your
'%word' type search. It will always sequential scan the table.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2008-02-11 15:51:59 Re: Working with huge amount of data.
Previous Message Vivek Khera 2008-02-11 15:41:16 Re: Is PG a moving target?