Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jCGjV-0008MZ-5v for pgsql-general@arkaria.postgresql.org; Thu, 12 Mar 2020 05:50:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jCGjU-0006VY-3C for pgsql-general@arkaria.postgresql.org; Thu, 12 Mar 2020 05:50:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jCGjT-0006VQ-PO for pgsql-general@lists.postgresql.org; Thu, 12 Mar 2020 05:50:11 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jCGjR-00031N-6e for pgsql-general@postgresql.org; Thu, 12 Mar 2020 05:50:11 +0000 Received: by mail-wr1-x444.google.com with SMTP id z15so5803490wrl.1 for ; Wed, 11 Mar 2020 22:50:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=bXZJ/TLVZNonMhitnyxIwT+fy4xdlnz2kmQo/zsNCNg=; b=nziREMBFsPvU6gvuvZoSiO70KYUUmRAFfxnDc4OUJeCzKgLbs2RLAGr1amhxTY9YzE 7JKPIE9YUrpoURLcHTd5XfQtXV/TCPt744MXkqRv4JQqChQmnwMBL+nRtzBAXi1xvEgn hmFmmeXRXx6vg2+gl9iwg6Jtr7eq7K+bVevR9iyOq4ySNLzzhQLEBuH2ER3CkFM5SK5f fEReETruhFWyxbcepCUk7I+0k83gLiHGC3WKIiN092+IzB9F3ez6LRXnUhTFXzInlLaY DN3dB9BwRg1V98gPpkuLz2GMwcU34iT0GgmaKDDM8mVFfnNjJcIJRiPunF0JIl8YJUZu vTIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=bXZJ/TLVZNonMhitnyxIwT+fy4xdlnz2kmQo/zsNCNg=; b=Zk962g3XwKToN4tc9kb2YIcLTe8vyMV59Ev/VlJlTG/RdvhNqFd6fDx6GkiV0UdDTc 9Vim+cWWMahP0TTjJ979/0cQ62gPTxAE5bhFHMvC1ji7mlpbcndNaSKszDLfgi6mbfSl WEX2zsPMTcUI/f/XYlZ2n1dzjp8txY/Z8qGUPlvh/YAAH3zqG3uSAIfqj5Og6IJjvdG3 UdXuHpIg1MWD43Sh/ma4UpLsNYF8phya4KvVEQSdjbr5Fu1ss8KH3BadWzOvUECNBgSA lr5Pe76ycDSbwGD46RVtVgBs0IbCMK2U4SMeej8gbY0Z22LWNRuorubBOWE0VbG/V9ZI ZWVw== X-Gm-Message-State: ANhLgQ1bvhchtFYt13e/GuMgOVjxrLW02XUlNXWuJczVtylhjbYjbyso YpwLo0wHFU6i8TJaBgYLg9EH6g== X-Google-Smtp-Source: ADFU+vvKgjiI2svC8bV3e4Q2Otq/CrbBX2qAW9q9+ndj8U9MMJDVZQ0wI5tGGMWujMjtEvKVY0UXGQ== X-Received: by 2002:a5d:4c8e:: with SMTP id z14mr6713276wrs.259.1583992207155; Wed, 11 Mar 2020 22:50:07 -0700 (PDT) Received: from localhost.localdomain ([185.6.105.106]) by smtp.gmail.com with ESMTPSA id o3sm11901932wme.36.2020.03.11.22.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 22:50:06 -0700 (PDT) Message-ID: <1d62da8f427c3f7533669be23db5195a23ad6331.camel@cybertec.at> Subject: Re: Back Port Request for INVALID Startup Packet From: Laurenz Albe To: Virendra Kumar , Tom Lane Cc: Pgsql-general General Date: Thu, 12 Mar 2020 06:50:05 +0100 In-Reply-To: <446079039.553015.1583975770868@mail.yahoo.com> References: <1580001356.490624.1583970710532.ref@mail.yahoo.com> <1580001356.490624.1583970710532@mail.yahoo.com> <10013.1583972967@sss.pgh.pa.us> <446079039.553015.1583975770868@mail.yahoo.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, 2020-03-12 at 01:16 +0000, Virendra Kumar wrote: > This is simple patch, would that impact badly if patched to prior versions or some other > constraints forced to not do that. I am just trying to understand this a bit. It is not that this patch would have a terrible impact. There is a good reason for being very strict about what to backport: we want users to install the latest minor release without them worrying if that will change any behavior they rely on or not. If the users are not confident that they can always install the latest minor release without extra testing, they won't install them and run old, buggy releases. This would be bad for PostgreSQL's reputation of being stable and reliable. So also "harmless" changes that don't actually fix a bug are not backported. > On AWS RDS we have primary and secondary hosts known in advance in most cases. > So if a primary instance fails over it will be other host and hence we have to > update the active nodes in targets using lamda function. AWS RDS fails over very > quickly under 3 seconds mostly and hence we have set that health checks to 3seconds. > I'll go back to AWS folks and see if they can do this in prior releases. Hm. A system that fails over withing three seconds seems fragile to me. Doesn't that mean that evvery little hiccup will cause a failover? Maybe I don't understand what you are doing, but wouldn't it be better to catch errors whenever you perform a database operation and retry the operation if the error indicates that you have lost the connection? Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com