agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
pgsql: Make after-startup shmem failure test reliable
2+ messages / 1 participants
[nested] [flat]

* pgsql: Make after-startup shmem failure test reliable
@ 2026-09-01 18:50 Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Freund @ 2026-09-01 18:50 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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.slg01@gmail.com>
Reported-by: Andres Freund <andres@anarazel.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(+)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Make after-startup shmem failure test reliable
@ 2026-09-01 18:50 Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Freund @ 2026-09-01 18:50 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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.slg01@gmail.com>
Reported-by: Andres Freund <andres@anarazel.de>
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(+)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2026-09-01 18:50 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-09-01 18:50 pgsql: Make after-startup shmem failure test reliable Andres Freund <andres@anarazel.de>
2026-09-01 18:50 pgsql: Make after-startup shmem failure test reliable Andres Freund <andres@anarazel.de>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox