From: Antonin Houska <ah@cybertec.at>
To: Sami Imseih <samimseih.pg@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Race conditions during parallel worker (unclean) exit
Date: Wed, 09 Sep 2026 20:42:32 +0200
Message-ID: <15111.1788979352@localhost> (raw)
In-Reply-To: <CAN12+YLh4WTE0aEUWtvLOXWOuCGnNY2yunv98s9A0S9DQLRtCQ@mail.gmail.com>
References: <64338.1788881902@localhost>
<CAN12+YLh4WTE0aEUWtvLOXWOuCGnNY2yunv98s9A0S9DQLRtCQ@mail.gmail.com>
Sami Imseih <samimseih.pg@gmail.com> wrote:
> It seems cleaner to introduce a separate message for this case, maybe
> "PqMsg_ParallelAborted", and keep the existing
> "ERROR: lost connection to parallel worker" message.
I'm not sure this is worth adjusting the FE/BE protocol. I'd prefer regular
ERROR message (PqMsg_ErrorResponse), but only in some minimalistic form. The
worker would only send the message, w/o doing any error handling itself.
--
Antonin Houska
Web: https://www.cybertec-postgresql.com
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-hackers@postgresql.org
Cc: ah@cybertec.at, samimseih.pg@gmail.com
Subject: Re: Race conditions during parallel worker (unclean) exit
In-Reply-To: <15111.1788979352@localhost>
References: <64338.1788881902@localhost> <CAN12+YLh4WTE0aEUWtvLOXWOuCGnNY2yunv98s9A0S9DQLRtCQ@mail.gmail.com> <15111.1788979352@localhost>
* 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