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 1rG7lI-00DrBq-Nv for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Dec 2023 01:22:09 +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 1rG7lH-001RuM-Dr for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Dec 2023 01:22:07 +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 1rG7lF-001RuE-JH for pgsql-hackers@lists.postgresql.org; Thu, 21 Dec 2023 01:22:07 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rG7l9-00BQ0T-Pq for pgsql-hackers@lists.postgresql.org; Thu, 21 Dec 2023 01:22:03 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 48E995C037C; Wed, 20 Dec 2023 20:21:58 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 20 Dec 2023 20:21:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1703121718; x=1703208118; bh=1bkIJdNEIJ zCBaAAAcMgfg9zZ61YltMVUjc7uOEPoU0=; b=MAnFYxme4Uta/px7xWuTaV6cOY V+Di6lQJjaic4LImdG/qMoP+PSq7mC4yi8uE2ysIrDVwE0K4gTLVydBG1QpqS2Dh 6Fj3j7pSbVzssvsiqdCIN4ly2ZbaK43d3jK9ZsixvwlA07dOJDqxm4h3JE0PGyYg 9Aac5fe/1T9VpJbRM1I6C5yNz6nNOuuznkDSdUN0NzBxnKGkEY0489rOaAL8jWc/ 0WgU7l5phSfgrhBtQtJnAoe8VW/0KE8BbYR1pm6a3EM+w/uX2ds/0cG+67sDmsZ9 wEjg3f8pDlt9naLALEM7odcOMbBEj56jQ5XrFI4mboW9HhBP+gb+gTb+1W7Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1703121718; x=1703208118; bh=1bkIJdNEIJzCBaAAAcMgfg9zZ61Y ltMVUjc7uOEPoU0=; b=LekA1Cf+V7vqDoyPiHip3IlnFucgivCeIptVgd7bJ8hj l5zlC6SzSNNtn5beh/Bhft3c6NVe8dpX7bMGZJ5vmQ+7wM78oald7EVaLE9D01L2 c4ekwPWtweRJ0RSSFQq6KI5UF6kgETqr9QPiIubibadqHVoFxu128usw+yNSJNW2 t0SIZeZQR6P7jBbwPUOljo5Pb6g39KXWUBQnhkQrWt/xz7kHFifYtKUupdDUpvcE kvPvN62IKG6U1kLBOXywEve9MFW93VDOIcWv/IKanM+Ro67xcf4N12lz16pNckMl Lr1cWMuWSE5lX1D2dlYQ718ODayzxaw6ZyeopgMQoQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvddufedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 20 Dec 2023 20:21:55 -0500 (EST) Date: Thu, 21 Dec 2023 10:21:45 +0900 From: Michael Paquier To: Euler Taveira Cc: Bharath Rupireddy , Kyotaro Horiguchi , Alvaro Herrera , Andrew Dunstan , pgsql-hackers@lists.postgresql.org Subject: Re: Add a perl function in Cluster.pm to generate WAL Message-ID: References: <20230615.134015.1421242753635015365.horikyota.ntt@gmail.com> <3a6978d6-e4fc-4014-b5f7-45db53d8fa53@app.fastmail.com> <5d160064-8cbe-4b32-9c55-c983b1f63b12@app.fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="o18LuzQUAwi9Qa/W" Content-Disposition: inline In-Reply-To: <5d160064-8cbe-4b32-9c55-c983b1f63b12@app.fastmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --o18LuzQUAwi9Qa/W Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 20, 2023 at 12:24:04AM -0300, Euler Taveira wrote: > LGTM. I was eyeing at 020_messages.pl and it has a pg_switch_wal() after a transaction rollbacked. 020_archive_status.pl creates a table, does=20 one segment switch, then a checkpoint (table is used afterwards). Perhaps these could be changed with the new routine, but it does not seem like this improves the readability of the tests, either, contrary to the ones updated here where a fake table is created to force some records. What do you think? We have a few more pg_switch_wal() calls, as well, but these rely on WAL being already generated beforehand. I have added a comment about pg_logical_emit_message() being in non-transactional mode and the flush implied by pg_switch_wal() as that's important, edited a bit the whole, then applied the patch. -- Michael --o18LuzQUAwi9Qa/W Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmWDkygACgkQnvQgOdby QH1uGw/+Igw3cvxuwin5InqTEAmX+L+txMLmmqEbsjb2YbhN7kNnj2PFJaiL3BSr 1Ul9D5dtQ0jlivVWC0QttJv5xguMEswuEFKjjYVU2CZ9uz2L6yt8HqEq8R7+Amoc 3D5TSMF8AUPcWG42RLEyiymNeNrqc9bFlX0wY89kGiOaGNoEK8rKrxk8ZnS7dqvl jEsgmKurvNraQu6MsI9yYR9KYF2kvw4chAqLL3GAmDPxWUyWavZhIcrwq9YTTcHV sgQg3fl5mM1vuhcughe74NZIk7TmbGjaAw2sgFHavqSYSI2hAcAyYhcE6PU1TDHO zrmHKVx8wQl9/6O6QqZBDxyIXmX0SEYMc/D3lBdsZWidP9wdWR3BaCiOr1q4b63m FqoeWhqSSrKiHzyZm5+oSqUor4sxN7CDsWvsKZL/hZsb9yne+TriUUbDKSWgB6cc Jqwim2h0LJxLSFZ3wih7Pj4tzldB+gACMDyo+StD4vqgW0yFnWxNkEmWZd8l1eZQ 6r2TwVwj7hsw9HephzG3zE62nGlK+0jE0sonDHInpwf/JD4OSYPedhKDiKWtKVKO xGDLWoGyV9T/gpBKpZT8FY8KrhWz4lxzInDsAvU+xi2eTJXcDC4Sm+cmAle0HHB+ uPeRCxDqGLayUIXXIdDwR0tzbTkhzcnIeAykhQKHvPr6er9c5jM= =dggu -----END PGP SIGNATURE----- --o18LuzQUAwi9Qa/W--