Hi Zsolt,

Thanks for the review, and thanks Baji for testing v6.

1. Yes. Each function should check only what it uses. v6 wrongly
rejects your heap page.

2. I agree it is fragile. Your 3.b case shows it already. My check
uses att_align_pointer(), but index_deform_tuple() now aligns varlenas
differently. So the two disagree on a bad tuple. I will drop these
helpers.

3.a This is in decode_varbyte() itself. Sehrope's thread has a core
fix:

https://postgr.es/m/CAH7T-aoyWXh1GDZRJg5AzG_sAmUnvPdWoV9ybW+EA5VP=hm...@mail.gmail.com

3.b This also crashes on master, inside index_deform_tuple(). I don't
think pageinspect should try to catch it.

3.c This is a gap in the existing special space check. I will fix it.

So v7 would keep only the line pointer checks in 0001, plus the 3.c
fix. Does that sound reasonable?

Thanks,
Shihao

Reply via email to