pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yasuo Ohgaki <yasuo_ohgaki@hotmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Create index problem ( _bt_sort )
Date: Thu, 8 Feb 2001 09:25:22 +0900
Message-ID: <OE10VuMhvqgStMVhEUs000030af@hotmail.com> (raw)
References: <3A759862.11DDFE9C@cri74.org>
	<24937.980786878@sss.pgh.pa.us>
	<3A75A158.5D39D94D@cri74.org>
	<25101.980788813@sss.pgh.pa.us>

> > 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!)

I've got similar error.
=====
CREATE  INDEX "abcid_idx" on "abc" using btree ( "abcid" );
FATAL 1:  btree: failed to add item to the page in _bt_sort (2)
pqReadData() -- backend closed the channel unexpectedly.
 This probably means the backend terminated abnormally
 before or while processing the request.
The connection to the server was lost. Attempting reset: Succeeded.
=====
I couldn't reproduece this error with the same procedure.

(First of all, I did this for testing performance, so the indexed col has
the same text data and 500,000 rows. After Drop/Create table the same
table with the same data, PostgreSQL stops complainning.
My PostgreSQL has 32KB page size, and enabled multi-byte char code support.)

My locale is
======
LANG=ja_JP.eucJP
LC_CTYPE="ja_JP.eucJP"
LC_NUMERIC="ja_JP.eucJP"
LC_TIME="ja_JP.eucJP"
LC_COLLATE="ja_JP.eucJP"
LC_MONETARY="ja_JP.eucJP"
LC_MESSAGES="ja_JP.eucJP"
LC_PAPER="ja_JP.eucJP"
LC_NAME="ja_JP.eucJP"
LC_ADDRESS="ja_JP.eucJP"
LC_TELEPHONE="ja_JP.eucJP"
LC_MEASUREMENT="ja_JP.eucJP"
LC_IDENTIFICATION="ja_JP.eucJP"
LC_ALL=
=====

I guess there are something wrong in _bt_sort(2) or locale?

--
Yasuo Ohgaki




view thread (5+ messages)

Message-ID: <OE10VuMhvqgStMVhEUs000030af@hotmail.com>
Permalink:  ../OE10VuMhvqgStMVhEUs000030af@hotmail.com/
Also on:    postgresql.org/message-id/OE10VuMhvqgStMVhEUs000030af@hotmail.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: yasuo_ohgaki@hotmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Create index problem ( _bt_sort )
  In-Reply-To: <OE10VuMhvqgStMVhEUs000030af@hotmail.com>
  References: <3A759862.11DDFE9C@cri74.org> <24937.980786878@sss.pgh.pa.us> <3A75A158.5D39D94D@cri74.org> <25101.980788813@sss.pgh.pa.us> <OE10VuMhvqgStMVhEUs000030af@hotmail.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