X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 838E952896 for ; Sun, 19 Jun 2005 03:21:14 -0300 (ADT) 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 54719-10 for ; Sun, 19 Jun 2005 06:21:05 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.195]) by svr1.postgresql.org (Postfix) with ESMTP id 5D8A452854 for ; Sun, 19 Jun 2005 03:21:01 -0300 (ADT) Received: by rproxy.gmail.com with SMTP id i8so324981rne for ; Sat, 18 Jun 2005 23:21:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; 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:content-disposition:references; b=LGFHnTJEYEJ0FlYUPg+iRxI3A+efu0cfBdsR8NHsPFecUm1Mel2TdGz9dCQaCLgeT8Ip5ZkWdFlYgNTjW46WWdhLj25oSy8Rlkdaksx08EEtdEYXMwrlwbRyKuc/ch7fvRO0YFnRrM6r1NsoJe3yWjCNrewc/ztc0KLVtq4MD30= Received: by 10.38.181.17 with SMTP id d17mr1720035rnf; Sat, 18 Jun 2005 23:21:02 -0700 (PDT) Received: by 10.38.208.78 with HTTP; Sat, 18 Jun 2005 23:21:02 -0700 (PDT) Message-ID: Date: Sun, 19 Jun 2005 11:51:02 +0530 From: Rajesh Kumar Mallah Reply-To: Rajesh Kumar Mallah To: Michael Fuhr Subject: Re: partial index on non default tablespace syntax Cc: pgsql-sql@postgresql.org In-Reply-To: <20050618172722.GA92486@winnie.fuhr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050618172722.GA92486@winnie.fuhr.org> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.034 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200506/234 X-Sequence-Number: 21835 Fuhr,Tom and Everyone Extremely sorry for not consulting the docs. I was doing this: CREATE INDEX foo_name_idx ON foo (name)=20 WHERE name IS NOT NULL TABLESPACE testspace ; Regds Rajesh Kumar Mallah. On 6/18/05, Michael Fuhr wrote: > On Sat, Jun 18, 2005 at 10:24:06PM +0530, Rajesh Kumar Mallah wrote: > > > > Looks like its not possible to specify tablespace of an index with a > > where clause, >=20 > Could you show the command you're running and the error you get, > or otherwise explain what problem you're seeing? Is the following > not what you're looking for? >=20 > CREATE INDEX foo_name_idx ON foo (name) > TABLESPACE testspace > WHERE name IS NOT NULL; >=20 > http://www.postgresql.org/docs/8.0/static/sql-createindex.html >=20 > -- > Michael Fuhr > http://www.fuhr.org/~mfuhr/ >