Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0THKFq11813 for ; Mon, 29 Jan 2001 12:20:16 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id f0THKD925104; Mon, 29 Jan 2001 12:20:13 -0500 (EST) To: =?iso-8859-1?Q?Lo=EFc=20TREGOU=CBT?= cc: "pgsql-admin@postgresql.org" Subject: Re: Create index problem ( _bt_sort ) In-reply-to: <3A75A158.5D39D94D@cri74.org> References: <3A759862.11DDFE9C@cri74.org> <24937.980786878@sss.pgh.pa.us> <3A75A158.5D39D94D@cri74.org> Comments: In-reply-to =?iso-8859-1?Q?Lo=EFc=20TREGOU=CBT?= message dated "Mon, 29 Jan 2001 17:59:04 +0100" Date: Mon, 29 Jan 2001 12:20:13 -0500 Message-ID: <25101.980788813@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200101/216 X-Sequence-Number: 593 =?iso-8859-1?Q?Lo=EFc=20TREGOU=CBT?= writes: > Tom Lane wrote: >> =?iso-8859-1?Q?Lo=EFc=20TREGOU=CBT?= writes: > raslog=# create index user2000 on log2000(username); > FATAL 1: btree: failed to add item to the page in _bt_sort (2) >> >> How long are the usernames? IIRC, 7.0.* has some edge cases that might >> fail when items approach the maximum allowed size of 1/3 page (~ 2700 >> bytes). > The maximum length , is about 40 character (but not 2700 bytes). Hmm, then it's not what I thought. Would you be willing to send me a pg_dump of that table? (Don't send it to the whole list!) regards, tom lane