X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B6FFF32AE15 for ; Thu, 21 Oct 2004 06:44:51 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 70432-03 for ; Thu, 21 Oct 2004 05:44:48 +0000 (GMT) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by svr1.postgresql.org (Postfix) with ESMTP id EFCF932A7AD for ; Thu, 21 Oct 2004 06:44:48 +0100 (BST) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.203]) by svr4.postgresql.org (Postfix) with ESMTP id 081775AF51C for ; Thu, 21 Oct 2004 03:36:55 +0000 (GMT) Received: by mproxy.gmail.com with SMTP id 73so586619rnk for ; Wed, 20 Oct 2004 20:34:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=fMzchdGnZQLA9E1hUQqXxc18YROGwM8N3BApSyw2dQh6JOQNwBUPc/WY9wj2HPlq0ZL6ITUORNQ01zbjvnU9eM+jaQbm8KgSstH0vWquZb+XrJQ8zC/39P57MW3d1i57LuDsROQjoMDTfRuKJ+LrqVxT9vkN2r8egqjnWlkrWsg Received: by 10.39.1.26 with SMTP id d26mr2874209rni; Wed, 20 Oct 2004 20:34:55 -0700 (PDT) Received: by 10.38.76.43 with HTTP; Wed, 20 Oct 2004 20:34:55 -0700 (PDT) Message-ID: <37d451f704102020346fdbb855@mail.gmail.com> Date: Wed, 20 Oct 2004 22:34:55 -0500 From: Rosser Schwarz Reply-To: Rosser Schwarz To: Ray Subject: Re: create index with substr function Cc: pgsql-performance@postgresql.org In-Reply-To: <069201c4b715$34851670$0f6010ac@raysiu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <069201c4b715$34851670$0f6010ac@raysiu> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200410/337 X-Sequence-Number: 8813 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