agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make after-startup shmem failure test reliable
Date: Tue, 01 Sep 2026 18:50:24 +0000
Message-ID: <E1x1TYs-000000034c8-3yZU@gemulon.postgresql.org> (raw)

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(+)



view thread (2+ messages)

Message-ID: <E1x1TYs-000000034c8-3yZU@gemulon.postgresql.org>
Permalink:  ../E1x1TYs-000000034c8-3yZU@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1x1TYs-000000034c8-3yZU@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Make after-startup shmem failure test reliable
  In-Reply-To: <E1x1TYs-000000034c8-3yZU@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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