From: Ray <ray_siu@ge-ts.com.hk>
To: Rosser Schwarz <rosser.schwarz@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: create index with substr function
Date: Thu, 21 Oct 2004 11:37:26 +0800
Message-ID: <078b01c4b71f$4936e4e0$0f6010ac@raysiu> (raw)
References: <069201c4b715$34851670$0f6010ac@raysiu>
<37d451f704102020346fdbb855@mail.gmail.com>
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.schwarz@gmail.com>
To: "Ray" <ray_siu@ge-ts.com.hk>
Cc: <pgsql-performance@postgresql.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
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: ray_siu@ge-ts.com.hk, rosser.schwarz@gmail.com
Subject: Re: create index with substr function
In-Reply-To: <078b01c4b71f$4936e4e0$0f6010ac@raysiu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox