Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x4NFm-0076PC-26 for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Sep 2026 18:42:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x4NFl-00HIFY-13 for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Sep 2026 18:42:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x4NFk-00HIFE-3B for pgsql-hackers@lists.postgresql.org; Wed, 09 Sep 2026 18:42:37 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x4NFh-00000003p2S-43Q9 for pgsql-hackers@lists.postgresql.org; Wed, 09 Sep 2026 18:42:36 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-49b8ce9b733so49590605e9.1 for ; Wed, 09 Sep 2026 11:42:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1788979353; x=1789584153; darn=lists.postgresql.org; h=message-id:date:content-id:content-type:mime-version:comments :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=SzQXuaUgP8R8PXGbIL9+Hykmh3JubEWOMnPMimhequU=; b=AuuC6kt2pt/nqWbKuthPrmxi13hm1oev1pui07Se2Hit2I/NZSzc5cOLJf4+R6LHbm 6AuZCXi+h130S665B75iVM59Id+T7hG0KD+ghZZX41CF1reQ9grS7oe0zOsieVVBn37W loZ0OckH28+4N7r9B1mOw/oiFAra8yP1DjdrGCcBKOIPs5QsDMAs3tWTuhGy+lMKoSdr 04X/s2OZM/qatp66EaysXHtS9iWEnkFZ3tjU0mGRARzZnrmXkv/PJ7tp9m4ukWPdB1KD um1SDbT1HmffA4TuBjAl9kyMEoVBgxLrsyvDBOkDnVbbtV6gf42c9uSrseQ2Y+m/AGIQ qDzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788979353; x=1789584153; h=message-id:date:content-id:content-type:mime-version:comments :references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=SzQXuaUgP8R8PXGbIL9+Hykmh3JubEWOMnPMimhequU=; b=IN85QPQznuVJwtgrRmv4U5e/oyp3NNNSlc/hV5sH7qxR/O9ou7k8BnSv8m7YlK1sZg 9wuaRcE7ztSBgejXJs8fpoFv4eL+mFMU1P1OWWB4NOOsqSiMKo9FhXqrl2QFktSKKP5J uj6Y3goSDGhoDeFVfBlNjH4Ds73wyzyhw/r0OA3c4Z7LvctAN0CLi73kYewGNib4EFnU maoBMmp4wK0t+srDza9ZPesQrJUqG7FfvyePuDLW9Kg7XGcztEzKPxW7OI3ysp601L5T 0pBFySQbvVl8Vx9cuArQpEjnB3kMzMSceISMLTneW/yI/Xc7y/YBDZhC7PVP+X03+64W HwjQ== X-Gm-Message-State: AFuF++kPbfIKUQwmq+YvnUywU9CtrwvwQIl9hPPcISRZuX7dSz/28gYw tDfDJJwzc4y+r3QBfnaQjBUg6dVR4TzR407oVRRgOI9OsWRRZYz49aZVDdmvX0DXBvGD9FyhjNT EqC/uN2M= X-Gm-Gg: AYBFou2h9GWP0KAVSFzhBZdVM3VFlkLrjxETco7dbGbKUn23kkKc+5szPk6upm3rQ98 nhVlMdDs5hu2HJwglUEqiRYbdIebxf8eufjeovnGX/8U6D/SaMGcosKxRy7Pa8YzXMHZnYFYVgr xByDrhHG8Nqdi7zmgA7mfVFmU3QapNghx5wE46zVmSm5vgnGJsFH3F0uEleriJpFC/ZgNpAYopU qAYptBGbKCYrIZksb69zlnvEH3FEOy1X4bXsDd23jPB3Gvcxwy2VbFvDpl9zbeu7u/5Knf2/io+ 84zXRxdnOMib3E1g5iwmYBMCDrVH6CCp06tUkCDUTU08pKZJZw5zwFjwG/PNKG9rDKcrWIkN+Eb fbZcFF9fP++Sw6XmSYrVr/cwjRlJe4n+4XjsZUoLDS1eKR9o2Y4dQ5viu2Rb7houooOmRUOWdWw mshLh3cET+eEB/RMa7D0DtpK1lUlGyVBIbheMW+sUYLCJikEbOd077DjctT2Jx62q5MsR85U7pq wwKNYPPZ0mW X-Received: by 2002:a05:600c:5247:b0:493:aa0a:45ad with SMTP id 5b1f17b1804b1-49cf81dadcamr340736555e9.2.1788979352892; Wed, 09 Sep 2026 11:42:32 -0700 (PDT) Received: from localhost (109-81-170-190.rct.o2.cz. [109.81.170.190]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49d26c1bfc1sm12596775e9.4.2026.09.09.11.42.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2026 11:42:32 -0700 (PDT) From: Antonin Houska To: Sami Imseih cc: pgsql-hackers@lists.postgresql.org Subject: Re: Race conditions during parallel worker (unclean) exit In-reply-to: References: <64338.1788881902@localhost> Comments: In-reply-to Sami Imseih message dated "Tue, 08 Sep 2026 13:36:14 -0500." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15110.1788979352.1@localhost> Date: Wed, 09 Sep 2026 20:42:32 +0200 Message-ID: <15111.1788979352@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Sami Imseih 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