pgsql: Fix PL/Python build on MSVC with older Meson

2026-01-16 Thread Peter Eisentraut
Fix PL/Python build on MSVC with older Meson Amendment for commit 2bc60f86219. With older Meson versions, we need to specify the Python include directory directly to cc.check_header instead of relying on the dependency to pass it through. Author: Bryan Green Discussion: https://www.postgresql.

Re: pgsql: Enable Python Limited API for PL/Python on MSVC

2026-01-16 Thread Peter Eisentraut
On 15.01.26 17:21, Bryan Green wrote: On 1/15/2026 3:36 AM, Peter Eisentraut wrote: This is failing on buildfarm member drongo: .  AFAICT, this is the only buildfarm member that tests Python on Windows, so we have no additional results to compare with.  It did pass on Cirrus CI.  Andrew/Bryan,

pgsql: Fix crash in test function on removable_cutoff(NULL)

2026-01-16 Thread Heikki Linnakangas
Fix crash in test function on removable_cutoff(NULL) The function is part of the injection_points test module and only used in tests. None of the current tests call it with a NULL argument, but it is supposed to work. Backpatch-through: 17 Branch -- master Details --- https://git.postgr

pgsql: Fix crash in test function on removable_cutoff(NULL)

2026-01-16 Thread Heikki Linnakangas
Fix crash in test function on removable_cutoff(NULL) The function is part of the injection_points test module and only used in tests. None of the current tests call it with a NULL argument, but it is supposed to work. Backpatch-through: 17 Branch -- REL_18_STABLE Details --- https://git

pgsql: Fix crash in test function on removable_cutoff(NULL)

2026-01-16 Thread Heikki Linnakangas
Fix crash in test function on removable_cutoff(NULL) The function is part of the injection_points test module and only used in tests. None of the current tests call it with a NULL argument, but it is supposed to work. Backpatch-through: 17 Branch -- REL_17_STABLE Details --- https://git

pgsql: bufmgr: Avoid spurious compiler warning after fcb9c977aa5

2026-01-16 Thread Andres Freund
bufmgr: Avoid spurious compiler warning after fcb9c977aa5 Some compilers, e.g. gcc with -Og or -O1, warn about the wait_event in BufferLockAcquire() possibly being uninitialized. That can't actually happen, as the switch() covers all legal lock mode values, but we still need to silence the warning

pgsql: Fix rare test failure in nbtree_half_dead_pages

2026-01-16 Thread Heikki Linnakangas
Fix rare test failure in nbtree_half_dead_pages If auto-analyze kicks in at just the right moment, it can hold a snapshot and prevent the VACUUM command in the test from removing the deleted tuples. The test needs the tuples to be removed, otherwise no half-dead page is generated. To fix, introduc