Thanks for your response.
We installed the PostgreSQL-12.11 version and performed DB upgrade activity, still facing the same error on the same 2 tables.
We performed the below steps to resolve the error, however, no luck.
1. Upgrade All DB's to 12.11 from 9.6 and successfully completed.
2. Performed the vacuum full analyze on upgrade data i.e 12.11, it's also completed successfully.
3. Performed the Logical dump backup on all DB's, failed only 2 tables due to chunk error.
4. Performed testing with dropping these 2 tables & recreating and loading data from backup file (copy command), loading data completed without any issues, however, facing issues for data selection as well as logical backup.
5. Performed testing with truncating table , loading data from backup file, loading data completed without any issues, however, facing issues for data selection.
6. Deleted only corrupted data & performed the same activities again getting the same error.
These 2 tables are big in size and having bytea, text columns might be this column resulting in a chunk error.
Is there any other way to resolve this.
Thanks & Regards,
Manoj