![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
For the last 6 months or so we've had an intermittent issue while doing a data import with a simple update statement. The fix that we've found for this issue is to REINDEX TABLE <tablename>; |
#3
| |||
| |||
|
|
"Paul Laughlin" <plaughlin (AT) gmail (DOT) com> writes: For the last 6 months or so we've had an intermittent issue while doing a data import with a simple update statement. The fix that we've found for this issue is to REINDEX TABLE <tablename>; What PG version is this? Are you sure that the REINDEX actually does anything, as opposed to merely retrying the data import? I'm thinking you may be having problems with OID collisions after OID wraparound, which is something 8.1 should defend against but no earlier version does. What do you get from select count(distinct chunk_id) from pg_toast.pg_toast_635216540 ; regards, tom lane |
laughlin (AT) gmail (DOT) com">plaughlin (AT) gmail (DOT) com</a>> writes:<br>> For the last 6 months or so we've had an intermittent issue while doing a<br>> data import with a simple update statement. The fix that we've found for
#4
| |||
| |||
|
|
warehouse=# select count(distinct chunk_id) from pg_toast.pg_toast_635216540; count ------- 74557 (1 row) We're on version 8.0.7 |
#5
| |||
| |||
|
|
"Paul Laughlin" <plaughlin (AT) gmail (DOT) com> writes: warehouse=# select count(distinct chunk_id) from pg_toast.pg_toast_635216540; count ------- 74557 (1 row) We're on version 8.0.7 Well, 8.0 is definitely at risk for OID collisions in a toast table, but with so few entries I'd have thought the probability pretty low. How often do you see these errors? regards, tom lane |
laughlin (AT) gmail (DOT) com">
#6
| |||
| |||
|
|
We got it early last week and again this morning. Before these two it was about six months ago. |
![]() |
| Thread Tools | |
| Display Modes | |
| |