| From: | vignesh C <vignesh21(at)gmail(dot)com> |
|---|---|
| To: | shihao zhong <zhong950419(at)gmail(dot)com> |
| Cc: | Greg Burd <greg(at)burd(dot)me>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Joao Rito <joaovictor(dot)rito(at)gmail(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Jeff Davis <pgsql(at)j-davis(dot)com>, Alexander Lakhin <exclusion(at)gmail(dot)com> |
| Subject: | Re: Hash index: stop registering pin-only bucket pages in WAL (remove REGBUF_NO_CHANGE) |
| Date: | 2026-11-24 11:48:51 |
| Message-ID: | CALDaNm2YkmOZgcHxrokuRx8_KWJizJctUgmQ5n49tsv+xTaaXA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Sun, 22 Nov 2026 at 00:09, shihao zhong <zhong950419(at)gmail(dot)com> wrote:
>
> Hi Greg,
>
> I think v16 is pretty good.
>
> Two small things:
> 1. In hash_xlog_squeeze_page(), block 0 is now registered only when
> the write page is modified. So inside the BLK_NEEDS_REDO block,
> mod_wbuf always ends up true. The Assert in the ntups == 0 can be change.
>
> 2. pg_waldump no longer shows the primary bucket block.
>
> I had attached proposed fix in this email
Thanks, your changes look good for the comments reported, I have
merged the changes to the v17 version patch.
Regards,
Vignesh
| Attachment | Content-Type | Size |
|---|---|---|
| v17-0002-Add-a-recovery-test-for-the-hash-WAL-pin-only-bu.patch | application/octet-stream | 11.8 KB |
| v17-0001-Don-t-register-pin-only-primary-bucket-pages-in-.patch | application/octet-stream | 26.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hayato Kuroda (Fujitsu) | 2026-11-24 11:51:36 | RE: Hash index: stop registering pin-only bucket pages in WAL (remove REGBUF_NO_CHANGE) |
| Previous Message | Fujii Masao | 2026-11-24 11:45:39 | Re: BUG #19631: currtid2() on a view with GROUP BY ctid crashes with XX000 |