pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedVACUUM FULL missing chunk number 0 for toast value
2+ messages / 2 participants
[nested] [flat]
* VACUUM FULL missing chunk number 0 for toast value
@ 2022-01-03 09:28 Yi Sun <yinan81@gmail.com>
2022-01-03 16:18 ` Re: VACUUM FULL missing chunk number 0 for toast value Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Yi Sun @ 2022-01-03 09:28 UTC (permalink / raw)
To: pgsql-general
Hi All,
OS: CentOS 7.6
PG: 11.11
Once we tried to vacuum full a table, got the error msg "ERROR: missing
chunk number 0 for toast value", there is a doc as below for the select
issue, but for our case select is no issue,
what's the reason caused and how to fix this please? Thanks
https://newbiedba.wordpress.com/2015/07/07/postgresql-missing-chunk-0-for-toast-value-in-pg_toast/
1. vacuum full output:
VACUUM FULL VERBOSE ANALYZE application.notes;
INFO: vacuuming "application.notes"
ERROR: missing chunk number 0 for toast value 183500290 in pg_toast_16977
2. explain select output:
explain select * from application.notes;
QUERY PLAN
------------------------------------------------------------------
Seq Scan on notes (cost=0.00..430924.43 rows=412443 width=767)
Thanks and regards
Sun Yi
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: VACUUM FULL missing chunk number 0 for toast value
2022-01-03 09:28 VACUUM FULL missing chunk number 0 for toast value Yi Sun <yinan81@gmail.com>
@ 2022-01-03 16:18 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2022-01-03 16:18 UTC (permalink / raw)
To: Yi Sun <yinan81@gmail.com>; +Cc: pgsql-general
Yi Sun <yinan81@gmail.com> writes:
> Once we tried to vacuum full a table, got the error msg "ERROR: missing
> chunk number 0 for toast value", there is a doc as below for the select
> issue, but for our case select is no issue,
Hmm, "SELECT *" doesn't throw any error? That suggests that the
missing-toast-data problem is in a row that SELECT ignores because
it's dead, but VACUUM FULL is trying to copy it anyway, which would
imply that VACUUM thinks it's still visible to some old transaction.
Check to see if you've got old open transactions (particularly
prepared-and-never-committed transactions).
That's just a workaround of course. It's not very clear whether
there's any actual data corruption here, but if you're not having
SELECT problems, it seems like whatever it is isn't critical.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2022-01-03 16:18 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-01-03 09:28 VACUUM FULL missing chunk number 0 for toast value Yi Sun <yinan81@gmail.com>
2022-01-03 16:18 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox