Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group