Re: TEXT column and indexing

From: Manfred Koizar <mkoi-pg(at)aon(dot)at>
To: Ian Barwick <barwick(at)gmx(dot)net>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: TEXT column and indexing
Date: 2003-11-19 16:26:01
Message-ID: o86nrvk658f8jfr503f8c9sidmk0hlnt8u@email.aon.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, 19 Nov 2003 10:18:18 +0100, Ian Barwick <barwick(at)gmx(dot)net>
wrote:
>Indexes:
> [...]
> "opv_v_ix" btree (substr(value, 1, 128))

>SELECT obj_property_id
> FROM object_property_value opv
> WHERE opv.value = 'foo'

Try
... WHERE substr(opv.value, 1, 128) = 'foo'

HTH.
Servus
Manfred

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Stephan Szabo 2003-11-19 16:35:05 Re: TEXT column and indexing
Previous Message SZŰCS Gábor 2003-11-19 16:04:01 Re: constant vs function param differs in performance