pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rosser Schwarz <rosser.schwarz@gmail.com>
To: Ray <ray_siu@ge-ts.com.hk>
Cc: pgsql-performance@postgresql.org
Subject: Re: create index with substr function
Date: Wed, 20 Oct 2004 22:34:55 -0500
Message-ID: <37d451f704102020346fdbb855@mail.gmail.com> (raw)
In-Reply-To: <069201c4b715$34851670$0f6010ac@raysiu>
References: <069201c4b715$34851670$0f6010ac@raysiu>

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



view thread (8+ messages)  latest in thread

Message-ID: <37d451f704102020346fdbb855@mail.gmail.com>
Permalink:  ../37d451f704102020346fdbb855@mail.gmail.com/
Also on:    postgresql.org/message-id/37d451f704102020346fdbb855@mail.gmail.com

 · 

reply

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: rosser.schwarz@gmail.com, ray_siu@ge-ts.com.hk
  Subject: Re: create index with substr function
  In-Reply-To: <37d451f704102020346fdbb855@mail.gmail.com>

* 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