| From: | shihao zhong <zhong950419(at)gmail(dot)com> |
|---|---|
| To: | Baji Shaik <baji(dot)pgdev(at)gmail(dot)com> |
| Cc: | Greg Burd <greg(at)burd(dot)me>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: [PATCH] pageinspect: validate line pointers before using them |
| Date: | 2026-12-03 02:36:17 |
| Message-ID: | CAGRkXqRZn4eaZ2WHrJ-A2cxJjkCB=ORTqA5a192Vt13MJQUHbA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Baji,
> The attached 0003 adds the same check you use in bt_page_print_tuples()
> to GetBTPageStatistics().
Thanks for testing this and for the fix. I folded it into 0001 and
added you as a co-author.
> - 0002 needs a rebase.
v6 is rebased on current master.
> I think they should all be DATA_CORRUPTED.
v6 uses ERRCODE_DATA_CORRUPTED for all the checks this series adds.
The existing errors about the page type stay as they are.
Thanks,
Shihao
| Attachment | Content-Type | Size |
|---|---|---|
| v6-0002-pageinspect-validate-page-headers-and-BRIN-GIN-and-G.patch | application/octet-stream | 21.3 KB |
| v6-0001-pageinspect-validate-line-pointers-before-using-them.patch | application/octet-stream | 15.2 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2026-12-03 02:44:09 | Re: [PATCH] Do not reuse recovery snapshots after recovery ends |
| Previous Message | shihao zhong | 2026-12-03 02:32:52 | Re: [PATCH] Add planner support function to two-argument regexp_like() |