Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

348
Views
Is it possible to change the chunk sequence in a TOAST table in postgresql

I have a table in a postgresql database (version 9.6) which stores pdf documents. When I try to vacuum this table the following error message comes up:

unexpected chunk number 57 (expected 25) for toast value 1047226 in pg_toast_1027390

If I look into the toast table itself I can see, that the chunk number is incorrect, but is there any way to correct it? Or is there a way to identify the TOAST pointer in the normal relation to identify which pdf document is affected?

What I did so far is to reindex and to vacuum the associated toast table which both succeeded. Vacuuming of the normal relation failed. I also tried to export and import all data into a new database with no success. The error in the toast table remains. A pg_dump also fails.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!