pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: merryok <merryok@163.com>
To: Peter J. Holzer <hjp-pgsql@hjp.at>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: equivalent thing of mtr in mysql
Date: Sat, 16 Jul 2022 08:30:29 -0700
Message-ID: <52b03573-1e24-9cde-3bcb-41ecb60906ec@aklaver.com> (raw)
In-Reply-To: <2c01c02b.8c7.18204a1a906.Coremail.merryok@163.com>
References: <4114f05b.8c8d.181f2d9d679.Coremail.merryok@163.com>
	<20220712185728.vubbosjtlgffs2th@hjp.at>
	<2c01c02b.8c7.18204a1a906.Coremail.merryok@163.com>

On 7/15/22 18:31, merryok wrote:
> I'm sorry, first time to post a thread. mtr is short for mini-transaction.
> About mtr in mysql, we can refer to 
> https://dev.mysql.com/doc/refman/8.0/en/glossary.html 
> <https://dev.mysql.com/doc/refman/8.0/en/glossary.html> or
> https://dev.mysql.com/blog-archive/mysql-8-0-new-lock-free-scalable-wal-design/ 
> <https://dev.mysql.com/blog-archive/mysql-8-0-new-lock-free-scalable-wal-design/; 
> 
> 
> 
> So an insert in mysql,  wrapped in a user transaction, may result in 
> multiple mini-transactions, one is responsible for writing redo for 
> undo, the other one for writing redo for clustered index/secondary 
> index, and so on. Each mtr may modify multiple pages,  whose redo logs 
> are guaranteed by mtr to be written into disk or none of them are written.
> 

Read this:

https://www.postgresql.org/docs/current/wal.html

and see if it answers your questions.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (8+ messages)  latest in thread

Message-ID: <52b03573-1e24-9cde-3bcb-41ecb60906ec@aklaver.com>
Permalink:  ../52b03573-1e24-9cde-3bcb-41ecb60906ec@aklaver.com/
Also on:    postgresql.org/message-id/52b03573-1e24-9cde-3bcb-41ecb60906ec@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, merryok@163.com, hjp-pgsql@hjp.at
  Subject: Re: equivalent thing of mtr in mysql
  In-Reply-To: <52b03573-1e24-9cde-3bcb-41ecb60906ec@aklaver.com>
  References: <4114f05b.8c8d.181f2d9d679.Coremail.merryok@163.com> <20220712185728.vubbosjtlgffs2th@hjp.at> <2c01c02b.8c7.18204a1a906.Coremail.merryok@163.com> <52b03573-1e24-9cde-3bcb-41ecb60906ec@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox