Make after-startup shmem failure test reliable The test expects a 128 kB request to exceed the shared memory available after startup. Huge pages can round up the main shared memory segment enough for that request to succeed, defeating the test.
Disable huge pages for the allocation-failure phase so that it exercises the intended error path independently of shared memory segment rounding. Author: Ayush Tiwari <[email protected]> Reported-by: Andres Freund <[email protected]> Discussion: https://postgr.es/m/rpkhzrrmo7qiz7rr3qlufksb2oci33wcg3ao75le7dqindgoif@6yozkjwb6bdf Backpatch-through: 19 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/61e64cb19a08c23dca1df46f1ae09df514059fc6 Modified Files -------------- src/test/modules/test_shmem/t/001_late_shmem_alloc.pl | 3 +++ 1 file changed, 3 insertions(+)
