pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Index row maximum size and crash
2+ messages / 2 participants
[nested] [flat]

* Index row maximum size and crash
@ 2006-07-27 19:30 Daniel Caune <daniel.caune@ubisoft.com>
  2006-07-27 21:08 ` Re: Index row maximum size and crash Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Daniel Caune @ 2006-07-27 19:30 UTC (permalink / raw)
  To: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Index row maximum size and crash
  2006-07-27 19:30 Index row maximum size and crash Daniel Caune <daniel.caune@ubisoft.com>
@ 2006-07-27 21:08 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2006-07-27 21:08 UTC (permalink / raw)
  To: Daniel Caune <daniel.caune@ubisoft.com>; +Cc: pgsql-admin

"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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-07-27 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-07-27 19:30 Index row maximum size and crash Daniel Caune <daniel.caune@ubisoft.com>
2006-07-27 21:08 ` Tom Lane <tgl@sss.pgh.pa.us>

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