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 1oBL4h-0001qY-Lw for pgsql-general@arkaria.postgresql.org; Tue, 12 Jul 2022 18:57:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oBL4g-0000RH-J0 for pgsql-general@arkaria.postgresql.org; Tue, 12 Jul 2022 18:57:34 +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 1oBL4g-0000P2-8a for pgsql-general@lists.postgresql.org; Tue, 12 Jul 2022 18:57:34 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBL4b-00041W-QW for pgsql-general@lists.postgresql.org; Tue, 12 Jul 2022 18:57:33 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 0BDE074CC; Tue, 12 Jul 2022 20:57:28 +0200 (CEST) Date: Tue, 12 Jul 2022 20:57:28 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: equivalent thing of mtr in mysql Message-ID: <20220712185728.vubbosjtlgffs2th@hjp.at> Mail-Followup-To: pgsql-general@lists.postgresql.org References: <4114f05b.8c8d.181f2d9d679.Coremail.merryok@163.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="c3lqxyh52ad6wrsf" Content-Disposition: inline In-Reply-To: <4114f05b.8c8d.181f2d9d679.Coremail.merryok@163.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --c3lqxyh52ad6wrsf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2022-07-12 22:39:31 +0800, merryok wrote: > Hi, guys. I'm new here. >=20 > I'm eager to figure out what is the equivalent thing of mtr in mysql in P= G. What is MTR? A search for "mtr mysql" yields "mysql test run" and "multi-threaded replication", neither of which seems to be what you are talking about. When referring to concepts from other databases, please include a link to the relevant documentation. > When a dml operation occurs, it may modify multiple pages and gererate mu= ltiple > redo log records. mtr can make those logs atomically be transferred to log > buffer and written to disk.=20 > I think same situation exists in PG, but I can't find something like mtr,= why ? Transactions in PostgreSQL are always atomic (That should also be the case with MySQL, unless you use MyISAM tables). Ensuring that these changes also result in an atomic disk write seems to be both pointless and impossible (that might be many gigabytes of data). hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --c3lqxyh52ad6wrsf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmLNxBIACgkQ8g5IURL+ KF2nYQ//WHqqesNNgoVO5NW1DiWLdRqrvluUhaSpfZbpGOboEvEqd8u1SIdPkxWU e5WPXaePI0pHx7iwNMbwH3hKKgCEGdnGYNE4NhyETCU9G2bIT+8JQu78Maw/6OWe LmIEaL7csOQw81/BVNMmYUzju9WBfn4juO//t+1/OiNda4xVP4Vm6jK7bkHXflVl f+CLqVIk69gHSOVdRiwfHmNq6jKFd4D72EKWnNoXcXLxXr7TQbXrpJ/1q693FaXg I86Zut1uxMAKpF9SO+L2buVrhwM7DxrY8g8f8i6ZY7uzqgO5kfgWbE0OLZhXYuXn Gy+t9P/1P2o2NVYAupYVIkfSX6qJj9RXy6v22RiQ4r4RueZwlSbQjexSJxc1A3cs lXSc2E+9qJqR5/aqimfK9OqU+ig5prf+TxMIEY2PIwkCdehutGENuG3ihO08EOw8 5sbsTYdAboEDRayNCXYutPE8j4qGTUM/Ih7X08X+80cTXSaGebuOSN2W4DHebJK9 IPF5PBuDvKc/sWlbEd4cmBzepkKRIe51gde3WLzGzNSvLrN9sUqmlkO70JjuGlJo Pw1GiKNfzQAsYZqrn0Km58cLYm2+WjcwcQjgMfJ7Y1cTWYhgB0xOW7Wc+svp9BeF dh144xK4Gm6bq2oiOBP2hLVd+wJ6DsYm3fVKSNJYCRtUzaGcxwY= =mu8V -----END PGP SIGNATURE----- --c3lqxyh52ad6wrsf--