From: | "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: equivalent thing of mtr in mysql |
Date: | 2022-07-12 18:57:28 |
Message-ID: | 20220712185728.vubbosjtlgffs2th@hjp.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 2022-07-12 22:39:31 +0800, merryok wrote:
> Hi, guys. I'm new here.
>
> I'm eager to figure out what is the equivalent thing of mtr in mysql in PG.
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 multiple
> redo log records. mtr can make those logs atomically be transferred to log
> buffer and written to disk.
> 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
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp(at)hjp(dot)at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
From | Date | Subject | |
---|---|---|---|
Next Message | Rob Sargent | 2022-07-12 19:07:41 | Re: equivalent thing of mtr in mysql |
Previous Message | merryok | 2022-07-12 14:39:31 | equivalent thing of mtr in mysql |