Re: create index with substr function - Mailing list pgsql-performance

From Tom Lane
Subject Re: create index with substr function
Date
Msg-id 10774.1098327554@sss.pgh.pa.us
Whole thread Raw
In response to create index with substr function  ("Ray" <ray_siu@ge-ts.com.hk>)
Responses Re: create index with substr function
List pgsql-performance
"Ray" <ray_siu@ge-ts.com.hk> writes:
> CREATE INDEX idx_doc_substr_doc_urn ON doc USING btree (SUBSTR(doc_urn,10));
> ERROR:  parser: parse error at or near "10" at character 68

This will work in 7.4, but not older releases.

            regards, tom lane

pgsql-performance by date:

Previous
From: "Ray"
Date:
Subject: create index with substr function
Next
From: Stephan Szabo
Date:
Subject: Re: create index with substr function