Re: Race conditions during parallel worker (unclean) exit

From: Antonin Houska <ah(at)cybertec(dot)at>
To: Sami Imseih <samimseih(dot)pg(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Race conditions during parallel worker (unclean) exit
Date: 2026-09-09 18:42:32
Message-ID: 15111.1788979352@localhost
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Sami Imseih <samimseih(dot)pg(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2026-09-09 19:01:09 Re: Report index currently being vacuumed in pg_stat_progress_vacuum
Previous Message Antonin Houska 2026-09-09 18:35:51 Misplaced comment in snapbuild.c