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 1w52lV-002q2L-10 for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Mar 2026 14:29:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w52lT-007HD1-2U for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Mar 2026 14:29:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w52lT-007HCp-1d for pgsql-hackers@lists.postgresql.org; Tue, 24 Mar 2026 14:29:51 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w52lS-00000000npW-0PRw for pgsql-hackers@lists.postgresql.org; Tue, 24 Mar 2026 14:29:51 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-b97bca3797dso174292066b.0 for ; Tue, 24 Mar 2026 07:29:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeltef.nl; s=google; t=1774362589; x=1774967389; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:references:mime-version:from :to:subject:cc:message-id:date:from:to:cc:subject:date:message-id :reply-to; bh=u4VtJ2n1ZnqVpyWi6PUqbs8rLt/D0wXsc231XZj3tms=; b=QVStzwX4QPkAIZcGNxD8ueKnuGouVJRvznyBY2LDxXt1x0on6WxXLd8PrXT52UhuWn A43cUpBZRYebJqts4LaTScF7iFslYTC2MtZ9fJe3Ek8uMxflLQAiDP5b10i3/WZOL+kT 3kFSOL0CnfWZnwBy982z34mMub8NSt42hGz3Jm4WJhC/avl7BAiwEt21Fu267gnRSdKJ SQ9YAh5v3ONNzzFLw7GkN++Zso1RGRxmA2M6pm7UAKb0yReBQacYaC591+lAEI3qVwqd DHyMo51tlDVlEzxNi7I2lPpUZjHFzxRQe+rzhRjrumvi8owf9n5Nav77mlsBuybD2onv pEnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774362589; x=1774967389; h=content-transfer-encoding:in-reply-to:references:mime-version:from :to:subject:cc:message-id:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u4VtJ2n1ZnqVpyWi6PUqbs8rLt/D0wXsc231XZj3tms=; b=IY0sZbDnxLe1Ua8Yd4RP8JDUo0e8809ohJfQ5x3jFBd9rIQtZPqhnGxDf/QfI9sirW wCtSTvvOqTkavx0LmjVKOqVNH/gPV2jx0aTxJ7i7AynSm/yuDdEujlETjV19ZGlhdyxk v7liXsK8qDNkwNq7vUY3uLTdYLQ9P5U9In9klMkxPjML0ZQhkBJRSkG3u/XLoEW4p1JG b2WTZP2Xd9BUDX0GJ+4cOFd8Rke12r5gUfamRnQdjOz8UnTj9RwIo244xNyHfdrZDWKy WTB/FalvagQhVBYqoALSLtUfMAOB8+fDpWcWa+NDeFuFXnVe1uz0x2rcvKcyT09wv+Qj 1whw== X-Forwarded-Encrypted: i=1; AJvYcCXpM6JWiFXcuglPpB+hYxWoVNAMEQvlLcNjQa47/ItwX74xtOgsQv5To848d+VpdQ+wkY/9JJq4e0JI0f5D@lists.postgresql.org X-Gm-Message-State: AOJu0YxDwVZo8R92qsv8XhLZMbblkxid82XJij+b1vHNcCCKPtoUlgmb LumlZGUtstpqDtI69vvuGSxgv9TsN3uzRhKIzy4pKXlELHZP3Gl3iMWr2unUIXcyd38= X-Gm-Gg: ATEYQzxVjnC3c8x3o2DmGgI0aYWCPmyMDqOs5SKUXPMx/iTaREi1brZbP93TwpkSSNs Fg5VgqONChJH7kGpMZou25pfnmjXnzeu12KuSyK/X5w3GwOk2oGZNfUaHtO34f6BZdgLMvCrzv9 p28wYx0I4m0xYcQvsoWayljt+hhqjAhcQ8pzrl3pA4i7OCFav8rx3xYpLOWxph8iORjoPqn36iE oLIjO9qcngpEh/++ntOVR+3BOZgjM4+cerBeJtO6vkK4HOCwz4TlBVfRp4j5VnDQfm5q2KX8v/W 7RS7jO0zQbNBGyKvWxrrOonQoHsZwZyM4abwBX74Ab/50l3oJ5m9DivAqWZP2WzmXZAPqF3v22i I8BXQqGTLQ/kSzdfZTwD291JYUvWHTEL+rVdMFM8bDKW0uxqJTnfY6TLKpcso1IILxA3rWyK/ji Gqifo2LPGGTxSl8KyhOAqj+lpD8qVEQ03hlCb1kWI/uWMiM32JhF4Jh26GDKMqXQ== X-Received: by 2002:a17:907:3fa8:b0:b98:33c5:1bb2 with SMTP id a640c23a62f3a-b9833c56788mr1049391066b.25.1774362588647; Tue, 24 Mar 2026 07:29:48 -0700 (PDT) Received: from localhost (037153217001.static.ipv4.heldenvannu.net. [37.153.217.1]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b98335f1747sm654252566b.33.2026.03.24.07.29.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Mar 2026 07:29:48 -0700 (PDT) Content-Type: text/plain; charset=UTF-8; format=Flowed Date: Tue, 24 Mar 2026 15:29:47 +0100 Message-Id: Cc: "Tomas Vondra" , "Zsolt Parragi" , "PostgreSQL Hackers" , "Dave Cramer" , "Heikki Linnakangas" Subject: Re: Add GoAway protocol message for graceful but fast server shutdown/switchover To: "Jacob Champion" From: "Jelte Fennema-Nio" MIME-Version: 1.0 References: In-Reply-To: Content-Transfer-Encoding: quoted-printable X-TUID: aVYRSKvxOszc List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 20 Mar 2026 at 21:11, Jacob Champion wrote: > I'd been wondering about these as well, but in the context of the > tangential thread [1]. HTTP has much stronger semantics for its GOAWAY > frames, for instance. I reread the HTTP/3 GOAWAY spec[1], but I think our protocol is too different from HTTP/3 to take any lessons from it (at the moment at least). HTTP/3 "streams" are independent, we have no such concept. Our whole session is a single stream, due to all of our session state. So the semantics that on a single connection a client cannot open newer streams does not really mean any useful for us, i.e. there's no way to open a new stream. Even the "which messages have definitely not been processed feature" can already be inferred from the server right now, by tracking what responses have been received before the server closes the connection. So I cannot think of any useful payload to add to the GoAway message. [1]: https://www.rfc-editor.org/rfc/rfc9114.html#connection-shutdown