Release and unpin buffers after leaving CRIT section in GIN.

Kirill Reshke <reshkekirill@gmail.com>

From: Kirill Reshke <reshkekirill@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2026-02-17T09:58:24Z
Lists: pgsql-hackers

Attachments

Hi
I have stopped $subj while doing unrelated hacking today.
transam/README suggest following for WAL-logging changes:

...

6. END_CRIT_SECTION()

7. Unlock and unpin the buffer(s).


Few places in GIN code does not follow that. v1 fixes it.

-- 
Best regards,
Kirill Reshke

Commits

  1. Sanitize some WAL-logging buffer handling in GIN and GiST code