Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id C5D5B2E2F3B for ; Wed, 5 Mar 2008 14:36:40 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 94474-05 for ; Wed, 5 Mar 2008 14:36:29 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 0F4752E0087 for ; Wed, 5 Mar 2008 14:36:30 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id m25IaQl06279; Wed, 5 Mar 2008 13:36:26 -0500 (EST) From: Bruce Momjian Message-Id: <200803051836.m25IaQl06279@momjian.us> Subject: Re: Re: [BUGS] BUG #3965: UNIQUE constraint fails on long column values In-Reply-To: <65937bea0803051030q6b8800c0pb6db4e7cae0bb45e@mail.gmail.com> To: Gurjeet Singh Date: Wed, 5 Mar 2008 13:36:26 -0500 (EST) CC: Tom Lane , Phil Frost , PostgreSQL-documentation X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/20 X-Sequence-Number: 4832 Gurjeet Singh wrote: > On Wed, Mar 5, 2008 at 10:39 PM, Tom Lane wrote: > > > Bruce Momjian writes: > > > Part of the problem is we don't know the length --- it is the compressed > > > length that is limited, I think to 8k. > > > > That's a problem, and the length limit is different for different index > > types. So you're really not going to be able to say anything very > > specific. Another problem is where would you put the information? > > > In 'CREATE INDEX' docs... > > http://www.postgresql.org/docs/8.3/interactive/sql-createindex.html > > Along with the following statement: > > method: The name of the index method to be used. Choices are btree, hash, > gist, and gin. The default method is btree. We are trying to figure out how to specify the index-type-specific length limits, not the index types themselves. -- Bruce Momjian http://momjian.us EnterpriseDB http://postgres.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +