| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Make after-startup shmem failure test reliable |
| Date: | 2026-09-01 18:50:24 |
| Message-ID: | E1x1TYs-000000034c6-3u5K@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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 <ayushtiwari(dot)slg01(at)gmail(dot)com>
Reported-by: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://postgr.es/m/rpkhzrrmo7qiz7rr3qlufksb2oci33wcg3ao75le7dqindgoif@6yozkjwb6bdf
Backpatch-through: 19
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e916927cfbc0e6aed4dfe0d6018c42abc7fc493c
Modified Files
--------------
src/test/modules/test_shmem/t/001_late_shmem_alloc.pl | 3 +++
1 file changed, 3 insertions(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2026-09-01 19:19:04 | pgsql: Fix assertion failures in DELETE FOR PORTION OF tuple routing |
| Previous Message | Jacob Champion | 2026-09-01 18:16:59 | pgsql: libpq: Stop greasing protocol connections |