"Ray" <ray_siu(at)ge-ts(dot)com(dot)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