Обсуждение: pgsql: amcheck: Add additional TOAST pointer checks.

Поиск
Список
Период
Сортировка

pgsql: amcheck: Add additional TOAST pointer checks.

От
Robert Haas
Дата:
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bd807be6935929bdefe74d1258ca08048f0aafa3

Modified Files
--------------
contrib/amcheck/verify_heapam.c           | 46 +++++++++++++++++++++++++++++++
src/bin/pg_amcheck/t/004_verify_heapam.pl | 24 ++++++++++++++--
2 files changed, 67 insertions(+), 3 deletions(-)