From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't write to postgres's stdin in shmem startup failure test
Date: Mon, 12 Oct 2026 05:35:06 +0000
Message-ID: <E1xG8gk-00000001HTT-0No4@gemulon.postgresql.org> (raw)
Don't write to postgres's stdin in shmem startup failure test
The single-user test expects postgres to fail during startup, before
processing any queries. Sending the preceding test's queries can race
with that exit and make IPC::Run abort on a broken pipe. To fix, pass
empty input instead.
Author: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Reported-by: Alexander Lakhin <exclusion@gmail.com>
Discussion: https://www.postgresql.org/message-id/e87c8fef-e254-441e-b889-bbcbd5afea7f@gmail.com
Backpatch-through: 19
Branch
------
REL_19_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/30ad431de3566252874fbf3c88897f8045122471
Modified Files
--------------
src/test/modules/test_shmem/t/001_late_shmem_alloc.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: heikki.linnakangas@iki.fi
Subject: Re: pgsql: Don't write to postgres's stdin in shmem startup failure test
In-Reply-To: <E1xG8gk-00000001HTT-0No4@gemulon.postgresql.org>
References: <E1xG8gk-00000001HTT-0No4@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox