From: Chris Hoover <revoohc@gmail.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Best way to index large text/varchar fields
Date: Fri, 9 Jun 2006 11:45:23 -0400
Message-ID: <1d219a6f0606090845q62fad204m95e526effb35fba1@mail.gmail.com> (raw)
In 8.1, what is the best way to index large text/varchar fields for wild
card searches?
I am getting good number of queries being submitted for reporting purposes
that are doing the following - where <text/varchar field> like '%some
phrase%' and ....
Is there a good way to index these fields so that the db engine will use and
index?
Thanks,
Chris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: revoohc@gmail.com
Subject: Re: Best way to index large text/varchar fields
In-Reply-To: <1d219a6f0606090845q62fad204m95e526effb35fba1@mail.gmail.com>
References: <1d219a6f0606090845q62fad204m95e526effb35fba1@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox