From: Ian Barwick <barwick@gmx.net>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: TEXT column and indexing
Date: Wed, 19 Nov 2003 20:13:42 +0100
Message-ID: <200311192013.42574.barwick@gmx.net> (raw)
In-Reply-To: <20031119083025.R85482@megazone.bigpanda.com>
References: <200311191018.18492.barwick@gmx.net>
<20031119083025.R85482@megazone.bigpanda.com>
On Wednesday 19 November 2003 17:35, Stephan Szabo wrote:
> On Wed, 19 Nov 2003, Ian Barwick wrote:
> > I have this table:
(...)
>
> You probably need to be querying like:
> WHERE substr(value,1,128)='foo';
> in order to use that index.
>
> While substr(txtcol, 1,128) happens to have the property that it would be
> probably be useful in a search against a short constant string, that's an
> internal property of that function.
That's the one :-). Thanks!
Ian Barwick
barwick@gmx.net
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: barwick@gmx.net, sszabo@megazone.bigpanda.com
Subject: Re: TEXT column and indexing
In-Reply-To: <200311192013.42574.barwick@gmx.net>
* 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