Re: create index with substr function

From: "Ray" <ray_siu(at)ge-ts(dot)com(dot)hk>
To: "Rosser Schwarz" <rosser(dot)schwarz(at)gmail(dot)com>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: create index with substr function
Date: 2004-10-21 03:37:26
Message-ID: 078b01c4b71f$4936e4e0$0f6010ac@raysiu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

sorry it doesn't works, as my postgres is 7.3 not 7.4. any other alternative
solution for version after 7.4??

Thank
Ray : )

----- Original Message -----
From: "Rosser Schwarz" <rosser(dot)schwarz(at)gmail(dot)com>
To: "Ray" <ray_siu(at)ge-ts(dot)com(dot)hk>
Cc: <pgsql-performance(at)postgresql(dot)org>
Sent: Thursday, October 21, 2004 11:34 AM
Subject: Re: [PERFORM] create index with substr function

> while you weren't looking, Ray wrote:
>
> > CREATE INDEX idx_doc_substr_doc_urn ON doc USING btree
(SUBSTR(doc_urn,10));
>
> CREATE INDEX idx_doc_substr_doc_urn ON doc USING btree
((SUBSTR(doc_urn,10)));
>
> You need an additional set of parens around the SUBSTR() call.
>
> /rls
>
> --
> :wq
>

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Manfred Spraul 2004-10-21 05:45:53 Re: futex results with dbt-3
Previous Message Rosser Schwarz 2004-10-21 03:34:55 Re: create index with substr function