Fix a confusing amcheck corruption message.

Robert Haas <rhaas@postgresql.org>

Commit: 4078ce65a0f7197180a9be2c6460ea4bf909bd98
Author: Robert Haas <rhaas@postgresql.org>
Date: 2021-03-16T19:42:50Z
Releases: 14.0
Fix a confusing amcheck corruption message.

Don't complain about the last TOAST chunk number being different
from what we expected if there are no TOAST chunks at all.
In such a case, saying that the final chunk number is 0 is not
really accurate, and the fact the value is missing from the
TOAST table is reported separately anyway.

Mark Dilger

Discussion: http://postgr.es/m/AA5506CE-7D2A-42E4-A51D-358635E3722D@enterprisedb.com

Files

Discussion