pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Don't write to postgres's stdin in shmem startup failure test
2+ messages / 1 participants
[nested] [flat]

* pgsql: Don't write to postgres's stdin in shmem startup failure test
@ 2026-10-12 05:35  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 2+ messages in thread

From: Heikki Linnakangas @ 2026-10-12 05:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/36a56229765c405b7e3655c3cf3a4fec2c0bc2b0

Modified Files
--------------
src/test/modules/test_shmem/t/001_late_shmem_alloc.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



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

* pgsql: Don't write to postgres's stdin in shmem startup failure test
@ 2026-10-12 05:35  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 2+ messages in thread

From: Heikki Linnakangas @ 2026-10-12 05:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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



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


end of thread, other threads:[~2026-10-12 05:35 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-10-12 05:35 pgsql: Don't write to postgres's stdin in shmem startup failure test Heikki Linnakangas <heikki.linnakangas@iki.fi>
2026-10-12 05:35 pgsql: Don't write to postgres's stdin in shmem startup failure test Heikki Linnakangas <heikki.linnakangas@iki.fi>

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