Unix Technical Forum

Index row maximum size and crash

This is a discussion on Index row maximum size and crash within the pgsql Admins forums, part of the PostgreSQL category; --> Hi, I try to create an index on character varying(64) column but PostgreSQL complains that the index row size ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 07:26 AM
Daniel Caune
 
Posts: n/a
Default Index row maximum size and crash

Hi,

I try to create an index on character varying(64) column but PostgreSQL
complains that the index row size reaches the maximum limit:

CREATE INDEX IDX_GSLOG_EVENT_ARCHIVE_GAME_CLIENT_VERSION
ON GSLOG_EVENT_ARCHIVE(GAME_CLIENT_VERSION);
ERROR: index row requires 198468548 bytes, maximum size is 8191


I was curious to know the maximum length I have for this column:

select max(game_client_version) from gslog_event_archive;
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.

The server crashes again! Sniff! :-( Seems that the database is
corrupted somewhere, no?

--
Daniel CAUNE
Ubisoft Online Technology
(514) 490 2040 ext. 3613

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 07:26 AM
Tom Lane
 
Posts: n/a
Default Re: Index row maximum size and crash

"Daniel Caune" <daniel.caune@ubisoft.com> writes:
> I try to create an index on character varying(64) column but PostgreSQL
> complains that the index row size reaches the maximum limit:


> CREATE INDEX IDX_GSLOG_EVENT_ARCHIVE_GAME_CLIENT_VERSION
> ON GSLOG_EVENT_ARCHIVE(GAME_CLIENT_VERSION);
> ERROR: index row requires 198468548 bytes, maximum size is 8191


That sure looks like a corrupted-data problem. Have you checked for bad
data in the GAME_CLIENT_VERSION column?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:09 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com