When i dump my postgres database , igot the error "pg_dump: ERROR: missing chunk number 0 for toast value 33956310" how to fix this ?

when i dump  postgres database  "itlive " . i got the error " pg_dump: ERROR:  missing chunk number 0 for toast value 33956310" "pg_dump: SQL command to dump the contents of table "ctattach" failed: PQendcopy() failed.
g_dump: The command was: COPY public.ctattach (ctattachid, ctfiledetail, ctfilename, ctattachment, ctattachedby, ctattacheddate, ctusertype, ctisescalatedreport, ctattachedby_companyid, ctattachedby_type) TO stdout;" . i can see the output size as 1Gb . what is abt this error & how to fix .?
LVL 7
kumarnirmalAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
Can you provide:
1) exact size of output in bytes
2) version of postgresql
3) version of operating system
0
kumarnirmalAuthor Commented:
1)1.1GB
2)postgressql 7.4
3)suse 9
0
kumarnirmalAuthor Commented:
1) exact size of output in bytes =1091737
0
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

gheistCommented:
Exact information means:
1) ls -l the.file
2) select version();
3) uname -a

Error you mention is due to bug in old database. You reindexed one table and all tables that references to it will show this error.
You can reindex ctattach, select * from ctattach or do vacuum full (analyse) (verbose);
0
kumarnirmalAuthor Commented:
Hi i have already tried this reindexing and vacuumfull , no sweet.Here with giving detail


1) -rw-r--r--  1 root root 1116844167 Aug 19 07:43 ithelpdesk_live.sql
2)PostgreSQL 7.4.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.3 (SuSE 3)Linux)PostgreSQL 7.4.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.3 (SuSE Linux)
0
gheistCommented:
1) Size is not even, so there is no OS limitation hitting
2) thats old as hell.

I have found 3 error handling in updates in pg_dump* around here:
http://www.postgresql.org/docs/7.4/static/release.html#RELEASE-7-4-23

Can you transfer data directory to windows and do pg_dumpall v7.4.23 from there?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DrCabbageCommented:
I would expect that a missing chunk error message indicates either corruption of the table ctattach or corruption of the associated "toast" table or its index. Basically the error means that it couldn't find a value.

There are a couple of ways you can proceed - I'm not sure that a newer version will necessarily help though.

If you do "select reltoastrelid from pg_class where relname='clattach';

...and note the number you get.

Then do "select relname from pg_class where oid =12345;

(where 12345 was the number you got previously)

and try "reindex table pg_toast_23456" where pg_toast_23456 was the name you received above.

This may not help you, but is worth trying.


0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PostgreSQL

From novice to tech pro — start learning today.