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.94.2) (envelope-from ) id 1rdFX8-004cAJ-Qq for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Feb 2024 20:19:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rdFX6-00DmUI-93 for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Feb 2024 20:19:04 +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.94.2) (envelope-from ) id 1rdFX4-00DmTs-Tt for pgsql-hackers@lists.postgresql.org; Thu, 22 Feb 2024 20:19:04 +0000 Received: from wfhigh3-smtp.messagingengine.com ([64.147.123.154]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rdFX0-000UCZ-Dx for pgsql-hackers@lists.postgresql.org; Thu, 22 Feb 2024 20:19:02 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.west.internal (Postfix) with ESMTP id 19F7F18000B7; Thu, 22 Feb 2024 15:18:56 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Thu, 22 Feb 2024 15:18:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1708633135; x= 1708719535; bh=5wy1ur6KX3wdV8UuTTL4Qdl5H9H9dIzL1SzkHbdGOIY=; b=d 0M2NOp6d+UVxOYKN4QMDetXIIcy+VOZgGxh8pWxpqK9paHrJ/L4qh8k8BNsp5e58 g9+4IfQ0uIkddkzp4zBkKDbrtE6u5EWcwpz8XDGtmhtBuvObKt/1i7G/mnwqrX1Y 0T77K8siWTtvMSgavsaFu1JmhxVxjxzR6L/ybF2CPZxXvKkowNN7VixD9Ygq+rda GAdWseM5HZjxxsPscVpyNPcdwJaMN7Rd/+DQtq6zAreUvORHcxvoyTgIVt6oygnj kmfSDw3Z06UAXkshbMG1kRVwRuJtqeYtCkOlqfFBr9yhURxuyWPav5zHU6VJxKRy al1sXKJo0kiMtc6uf3K/Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeeggddufeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomhepkdetlhhv rghrohcujfgvrhhrvghrrgdkuceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdroh hrgheqnecuggftrfgrthhtvghrnheptefhvdfhveehvdduvdffueeugffffeevveegudeh uefftedugeeggeevudeuudevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtg homhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegr lhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 22 Feb 2024 15:18:54 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1708617897; bh=VmH6ZF2nv6eEvT+RIMFAKXCKzfDaT9a4S68DryIR1aM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=OwdPpN2vSSQCHBbgbsLJDS1Q0bTDqt/eF6IHLGGBNQDNJEG5HYUpLPRlIB5L1OCsy 7JNST36eSQtjjEGZkieJ4lUF8m5YUcpueAi6+5JNiqhgRi7QIe0D7KBgZcPLMh/u9b wgmbHW5lXBihoNrGtuBzJnU8wAHUS0AIpmKpD855RFT4tWMXKeEW9DCFf1/HwWpQ0C MuBCaXyKSnqJW8OG764Vqq4wXZ7SVlNqepFs+790Fwei8bnyFcFNjonkQK9efioij4 3SlPIzst8dOTXi1iiu72EZjIvMmPKtcAs61MyMHQX1Jo2+sKZNLO9XXAHby/fIzD3K 1lYspwpsGdeyA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 8C000D69; Thu, 22 Feb 2024 17:04:57 +0100 (CET) Date: Thu, 22 Feb 2024 17:04:57 +0100 From: 'Alvaro Herrera' To: "Hayato Kuroda (Fujitsu)" Cc: 'Euler Taveira' , "pgsql-hackers@lists.postgresql.org" , vignesh C , Michael Paquier , Peter Eisentraut , Andres Freund , Ashutosh Bapat , Amit Kapila , Shlok Kyal , =?utf-8?B?RmFicsOtemlv?= de Royes Mello Subject: Re: speed up a logical replica setup Message-ID: <202402221604.pfd722wbw3tx@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, On 2024-Feb-22, Hayato Kuroda (Fujitsu) wrote: > Dear Alvaro, > > Hmm, but doesn't this mean that the server will log an ugly message > > that "client closed connection unexpectedly"? I think it's nicer to > > close the connection before terminating the process (especially > > since the code for that is already written). > > OK. So we should disconnect properly even if the process exits. I > added the function call again. Note that PQclear() was not added > because it is only related with the application. Sounds about right, but I didn't verify the patches in detail. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Hay quien adquiere la mala costumbre de ser infeliz" (M. A. Evans)