pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedCreate index problem ( _bt_sort )
5+ messages / 3 participants
[nested] [flat]
* Create index problem ( _bt_sort )
@ 2001-01-29 16:20 Loïc TREGOUËT <loic@cri74.org>
0 siblings, 1 reply; 5+ messages in thread
From: Loïc TREGOUËT @ 2001-01-29 16:20 UTC (permalink / raw)
To: Loïc TREGOUËT <loic@cri74.org>; pgsql-admin
Hello,
When i try to create a index (btree on text field) after a restore i've
the
following error :
FATAL 1: btree: failed to add item to the page in _bt_sort (2)
But , if i had some rows on this table , the index creation works fine !
The table contains 1 million rows.
I've tried a lot of time , on postgresql 7.0.2 and 6.5.3
Any idea , thanks
raslog=# select count(username) from log2000 ;
count
--------
965047
(1 row)
raslog=# create index user2000 on log2000(username);
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.
raslog=# insert into log2000 select * from log2001 ;
INSERT 0 111729
raslog=# create index user2000 on log2000(username);
CREATE
raslog=#
--
Loïc TREGOUËT
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Create index problem ( _bt_sort )
@ 2001-01-29 16:47 Tom Lane <tgl@sss.pgh.pa.us>
parent: Loïc TREGOUËT <loic@cri74.org>
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2001-01-29 16:47 UTC (permalink / raw)
To: Loïc TREGOUËT <loic@cri74.org>; +Cc: pgsql-admin
=?iso-8859-1?Q?Lo=EFc=20TREGOU=CBT?= <loic@cri74.org> 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).
Would you be willing to try the example in 7.1beta4?
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Create index problem ( _bt_sort )
@ 2001-01-29 16:59 Loïc TREGOUËT <loic@cri74.org>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: Loïc TREGOUËT @ 2001-01-29 16:59 UTC (permalink / raw)
To: ; +Cc: pgsql-admin
Tom Lane wrote:
>
> =?iso-8859-1?Q?Lo=EFc=20TREGOU=CBT?= <loic@cri74.org> 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).
>
> Would you be willing to try the example in 7.1beta4?
>
> regards, tom lane
The maximum length , is about 40 character (but not 2700 bytes).
What do you think about this :
when i have add some rows , the index creation become possible . It's
strange , isn't it ? I don't remove any row .
I work on a debien and i like the system package so, for the 7.1beta4,
i will try if i'm forced .
Thanks , soory for my english
--
Loïc TREGOUËT
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Create index problem ( _bt_sort )
@ 2001-01-29 17:20 Tom Lane <tgl@sss.pgh.pa.us>
parent: Loïc TREGOUËT <loic@cri74.org>
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2001-01-29 17:20 UTC (permalink / raw)
To: Loïc TREGOUËT <loic@cri74.org>; +Cc: pgsql-admin
=?iso-8859-1?Q?Lo=EFc=20TREGOU=CBT?= <loic@cri74.org> writes:
> Tom Lane wrote:
>> =?iso-8859-1?Q?Lo=EFc=20TREGOU=CBT?= <loic@cri74.org> 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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Create index problem ( _bt_sort )
@ 2001-02-08 00:25 Yasuo Ohgaki <yasuo_ohgaki@hotmail.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 5+ messages in thread
From: Yasuo Ohgaki @ 2001-02-08 00:25 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin
> > 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
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2001-02-08 00:25 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-29 16:20 Create index problem ( _bt_sort ) Loïc TREGOUËT <loic@cri74.org>
2001-01-29 16:47 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-01-29 16:59 ` Loïc TREGOUËT <loic@cri74.org>
2001-01-29 17:20 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-02-08 00:25 ` Yasuo Ohgaki <yasuo_ohgaki@hotmail.com>
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