Unix Technical Forum

BUG #2311: Toast table chunk_id overflow

This is a discussion on BUG #2311: Toast table chunk_id overflow within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2311 Logged by: Chris Hodgson Email address: chodgson@refractions.net PostgreSQL version: ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:49 AM
Chris Hodgson
 
Posts: n/a
Default BUG #2311: Toast table chunk_id overflow


The following bug has been logged online:

Bug reference: 2311
Logged by: Chris Hodgson
Email address: chodgson@refractions.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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:49 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #2311: Toast table chunk_id overflow

"Chris Hodgson" <chodgson@refractions.net> writes:
> 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

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:11 AM.


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