amcheck: Add additional TOAST pointer checks.
Robert Haas <rhaas@postgresql.org>
amcheck: Add additional TOAST pointer checks. Expand the checks of toasted attributes to complain if the rawsize is overlarge. For compressed attributes, also complain if compression appears to have expanded the attribute or if the compression method is invalid. Mark Dilger, reviewed by Justin Pryzby, Alexander Alekseev, Heikki Linnakangas, Greg Stark, and me. Discussion: http://postgr.es/m/8E42250D-586A-4A27-B317-8B062C3816A8@enterprisedb.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/amcheck/verify_heapam.c | modified | +46 −0 |
| src/bin/pg_amcheck/t/004_verify_heapam.pl | modified | +21 −3 |
Discussion
- Extending amcheck to check toast size and compression 18 messages · 2021-05-04 → 2021-11-06