postgresql/src
Michael Paquier 21e323e941 Sanitize some WAL-logging buffer handling in GIN and GiST code
As transam's README documents, the general order of actions recommended
when WAL-logging a buffer is to unlock and unpin buffers after leaving a
critical section.  This pattern was not being followed by some code
paths of GIN and GiST, adjusted in this commit, where buffers were
either unlocked or unpinned inside a critical section.  Based on my
analysis of each code path updated here, there is no reason to not
follow the recommended unlocking/unpin pattern done outside of a
critical section.

These inconsistencies are rather old, coming mainly from ecaa4708e5
and ff301d6e69.  The guidelines in the README predate these commits,
being introduced in 6d61cdec07.

Author: Kirill Reshke <reshkekirill@gmail.com>
Discussion: https://postgr.es/m/CALdSSPgBPnpNNzxv0Y+_GNFzW6PmzRZYh+_hpf06Y1N2zLhZaQ@mail.gmail.com
2026-02-19 15:59:20 +09:00
..
backend Sanitize some WAL-logging buffer handling in GIN and GiST code 2026-02-19 15:59:20 +09:00
bin pg_upgrade: Use COPY for LO metadata for upgrades from < v12. 2026-02-16 15:13:06 -06:00
common Fix mb2wchar functions on short input. 2026-02-09 12:08:58 +13:00
fe_utils Force standard_conforming_strings to always be ON. 2026-01-21 15:08:38 -05:00
include Simplify creation of built-in functions with default arguments. 2026-02-18 14:14:44 -05:00
interfaces Force creation of stamp file after libpq library check in meson builds 2026-02-18 16:07:13 +09:00
makefiles tests: Add a test C++ extension module 2026-01-20 16:42:30 +01:00
pl Fix plpgsql's handling of "return simple_record_variable". 2026-02-11 16:53:14 -05:00
port Make pg_numa_query_pages() work in frontend programs 2026-02-12 19:41:06 +02:00
template Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
test Use standard die() handler for SIGTERM in bgworkers 2026-02-18 19:59:34 +02:00
timezone Update time zone data files to tzdata release 2025c. 2026-01-18 14:54:33 -05:00
tools Perform radix sort on SortTuples with pass-by-value Datums 2026-02-14 13:50:06 +07:00
tutorial Force standard_conforming_strings to always be ON. 2026-01-21 15:08:38 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in tests: Add a test C++ extension module 2026-01-20 16:42:30 +01:00
Makefile.shlib Use exported symbols list on macOS for loadable modules as well 2025-06-10 07:04:43 +02:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00