dbTalk Databases Forums  

[BUGS] BUG #2311: Toast table chunk_id overflow

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2311: Toast table chunk_id overflow in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris Hodgson
 
Posts: n/a

Default [BUGS] BUG #2311: Toast table chunk_id overflow - 03-09-2006 , 08:37 PM







The following bug has been logged online:

Bug reference: 2311
Logged by: Chris Hodgson
Email address: chodgson (AT) refractions (DOT) net
PostgreSQL version: 7.4.7
Operating system: Linux Fedora Core 3
Description: Toast table chunk_id overflow
Details:

If you cycle through enough id's in your toast tables, the chunk_id goes
past 2^32 and wraps around, leaving you in an intermittent error state.
Inserting further toasted chunks will fail depending on whether that
particular next id from the sequence is already in the table or not.

It really shouldn't be possible to get into this state. There is obviously a
hard limitation of using 4-byte integers as ids for the toasted chunks... I
don't know what the solution is, but at very least an error message that is
more clear about what has happened than repeated, seemingly random
occurences of "duplicate key in table pg_toast.pg_toast_1834831156_index".

---------------------------(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

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2311: Toast table chunk_id overflow - 03-09-2006 , 08:48 PM






"Chris Hodgson" <chodgson (AT) refractions (DOT) net> writes:
Quote:
If you cycle through enough id's in your toast tables, the chunk_id goes
past 2^32 and wraps around, leaving you in an intermittent error state.
Inserting further toasted chunks will fail depending on whether that
particular next id from the sequence is already in the table or not.
This is dealt with in PG 8.1.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.