Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kIgC4-0007wi-9D for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Sep 2020 22:46:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kIgC3-0004Of-0L for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Sep 2020 22:46:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kIgC2-0004Md-Pt for pgsql-hackers@lists.postgresql.org; Wed, 16 Sep 2020 22:46:26 +0000 Received: from mail-qv1-xf2a.google.com ([2607:f8b0:4864:20::f2a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kIgBv-0003hQ-Rz for pgsql-hackers@lists.postgresql.org; Wed, 16 Sep 2020 22:46:26 +0000 Received: by mail-qv1-xf2a.google.com with SMTP id di5so19672qvb.13 for ; Wed, 16 Sep 2020 15:46:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=B6NLGwWp1gER15kAY3bBs6igC347xm0Uhe4lX59I3Hk=; b=N6PTesmytG7SK6Gm90901Y5RP4cGSpJZPfCVsAR29Si6fIzMLXzmc6ulL/grU3zQvn 2Es7U5ySlT5RVoARfDWYzZrk6Q5VHECvUYEvh8VLy2DymvbxoLohWk6rNnqHc68Eo6fr NPAvSiIY/Yueog238ILdjgakWOKJc7fn4GpU0H82vd0xQTH+TqhaaYllEVODkfS+rXzh uihSdA6gFggSyaBsB4T7Xsg7UaF3bfgsMwimr6Myj8BapWBuHF3SxY1yyTfliAPxr37W 4kMd+zkqSSsI69BoSZtCelXkfJXdLzAd3ggdAFuUdbzbqkAqOVbIBO6NdYE9eeyUxsIY 9S+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=B6NLGwWp1gER15kAY3bBs6igC347xm0Uhe4lX59I3Hk=; b=aVgZt2XQ2xCGzkbOac4RD1dqeWYNyQ2W6aVAcdz2XkpjHSOYruBT7jwCvIEQl8l+nd /gWZJ1O3wMQlFvWygrts+Uw8QqlvANnt1ODDcFG066TBDAQq7x3gKCp0aXM6iYEVsNrn AvnrZwmoKY1Tp9Q1iEdGkZKyMj86WaModAiNTJY60yQtjneQwd+qwYZ6TGM7wHSCUS+F TuotFrLvwCbWabOcyimU91j7qJuFTdqVJiFqVrfirDKPwFEKzb5nuXeiHFlwrCYb2vXn vvNXlbg6cHVKXgPWeZJSY6517ATxsP5r5CyrcR+JgNJjZQGBTsqSZyCpWYCl5d4OqbhF H55Q== X-Gm-Message-State: AOAM531aO3JuzGV/WXumQEYU3ghcNkuE2WZyKBCqAW1uYIWfAjqjQAVQ aTgnn3K8bOQmHUPYwvZ/a5+czCAgV5TYiTyLjHkSab0C4jzbR08ThXIbh5i3RRd7gFIMySYMtnU y9T0LzQpA7JM2MFAsfdF5PomxOuzLFTzFGZjz9Q0AAPl2Iw4Z0XdXKVQ9bNHBk6RUsMYrzzLTlC D3Ak2Qr0uEdwtDOecf X-Google-Smtp-Source: ABdhPJwPca7rI8Pq5RHZlFpAN3KwFookrLilw5oZevrC/MaRfcPxhRIt9f9w681UVwW6/f4oN6V/mQ== X-Received: by 2002:a0c:e294:: with SMTP id r20mr9185178qvl.60.1600296376715; Wed, 16 Sep 2020 15:46:16 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id m196sm20024909qke.87.2020.09.16.15.46.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 15:46:16 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 94D032A1565; Wed, 16 Sep 2020 19:46:14 -0300 (-03) Date: Wed, 16 Sep 2020 19:46:14 -0300 From: Alvaro Herrera To: Tom Lane Cc: Michael Paquier , pgsql-hackers@lists.postgresql.org Subject: Re: Gripes about walsender command processing Message-ID: <20200916224614.GA25522@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <39194.1600294868@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Sep-16, Tom Lane wrote: > Yeah, that works for me. It doesn't allow for having just one > set_ps_display() call ahead of the switch, but that isn't that > big a loss. We cannot merge the EndReplicationCommand calls to > after the switch, because some of the cases don't want one here; > so that partial duplication is inescapable. Right. > Note that your changes need to be backpatched into v13, > because AFAICS this code is violating the FE/BE protocol > right now --- it's just luck that libpq isn't moaning > about extra CommandComplete messages. But I don't think > we want to change the ps title behavior in v13 at this > late date, so that part should be HEAD-only. Ok, will do. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services