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 1rcNkh-002ZFL-Nw for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Feb 2024 10:53:31 +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 1rcNkg-003mmr-EC for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Feb 2024 10:53:30 +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.94.2) (envelope-from ) id 1rcNkf-003mmj-Pp for pgsql-hackers@lists.postgresql.org; Tue, 20 Feb 2024 10:53:30 +0000 Received: from wfout7-smtp.messagingengine.com ([64.147.123.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rcNkc-008CsN-Qa for pgsql-hackers@lists.postgresql.org; Tue, 20 Feb 2024 10:53:29 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfout.west.internal (Postfix) with ESMTP id C96EC1C00077; Tue, 20 Feb 2024 05:53:21 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 20 Feb 2024 05:53:22 -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=1708426401; x= 1708512801; bh=kcQst3Udud7pBjorummd+ebZRYjKt1f92CuzBGB+i7U=; b=G Jd35xcRIsc5Cm0Dj/jAAxlKoWHfEyKpPSFJsm5ZnvlKnrK7fT8rIVTHGuO1/uMXF XMGlQ2y9EiNzQcDt4UMq+XClBHJSRKO90RXjL6MfTBqf3t8XpPhuhdkkB3ocNJLs 6F4suai5mmVJYM+tGDkCjVDksd1rS8NLwTY7CTG95/jkXVk3WHGKfZL2klfzjdSR VewckeGQD1aFIK/Eqs9mMZwVHG72Y9bcgcyBwO1kANtRNlDhYqJZjap9fXfMxti+ Yw8Yl5GI970Wtq+rL3nUdsXoMjF1uEgkgjpKrQ3Wfl0ztzXKyyAg8sJLDmekR1Hy Hl78/VvrV1g8C1xL3gytw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedtgddvudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 20 Feb 2024 05:53:21 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1708426400; bh=QbaU2uI/RixV3DnWUULuBRhJd/HL+RgETVEvOTwa/G8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=e/2Pu6xVkz4GupovDmbcNWhLubSWorqmJ1UNsj8/2j5aBM504rcF1B7fVitWq0dFd 5M1dzXv1sevicVr1wOK+quX4KCf7yt/t96fK06zHBHj/OEY5DvAkbtKjFpVA9OWaHo xHx3AIviGoGMk6cSTRIhSH6+mDIbv5pppLA6pRvF/INpodMCta5cU3Nno489K5Q/4D iV0rvhEMqnLTXaamHJOM3sCF6HfZHVCTBRS2DuPUZbhXvxGd/j1CmOsXOL6R5vtHh2 1fjYFlUmGiKEY03ZHwSyn9skYNkzoj3sHz6uCkt7GSpTfX6BQFu5a8lQ7sjZchXf0Z bqnIoLWvN4Q2w== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id EAEC2CA0; Tue, 20 Feb 2024 11:53:20 +0100 (CET) Date: Tue, 20 Feb 2024 11:53:20 +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: <202402201053.6jjvdrm7kahf@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 On 2024-Feb-16, Hayato Kuroda (Fujitsu) wrote: > 15. > > You said in case of failure, cleanups is not needed if the process exits soon [1]. > But some functions call PQfinish() then exit(1) or pg_fatal(). Should we follow? 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). -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "We’ve narrowed the problem down to the customer’s pants being in a situation of vigorous combustion" (Robert Haas, Postgres expert extraordinaire)