Re: Undo logs

From: Dilip Kumar <dilipbalaut(at)gmail(dot)com>
To: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
Cc: Dilip Kumar <dilip(dot)kumar(at)enterprisedb(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Undo logs
Date: 2018-11-05 11:39:35
Message-ID: CAFiTN-t-L9H=L69BP=R2Lmf-6TvmXtDY72rSrWSM7fAiWe+w8A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox
Thread:
Lists: pgsql-hackers

On Mon, Sep 3, 2018 at 11:26 AM Dilip Kumar <dilipbalaut(at)gmail(dot)com> wrote:

Thomas has already posted the latest version of undo log patches on
'Cleaning up orphaned files using undo logs' thread[1]. So I have
rebased the undo-interface patch also. This patch also includes
latest defect fixes from the main zheap branch [2].

I have also done some changes to the undo-log patches. Basically, it
is just some cleanup work and also make these patches independently
compilable. I have moved some of the code into undo-log patches and
also moved out some code which is not relevant to undo-log.

Some examples:
1. Moved UndoLog Startup and Checkpoint related code into
'0001-Add-undo-log-manager_v2.patch patch'
+ /* Recover undo log meta data corresponding to this checkpoint. */
+ StartupUndoLogs(ControlFile->checkPointCopy.redo);
+
2. Removed undo-worker related stuff out of this patch
+ case WAIT_EVENT_UNDO_DISCARD_WORKER_MAIN:
+ event_name = "UndoDiscardWorkerMain";
+ break;
+ case WAIT_EVENT_UNDO_LAUNCHER_MAIN:
+ event_name = "UndoLauncherMain";
+ break;

[1] https://www.postgresql.org/message-id/flat/CAEepm=0ULqYgM2aFeOnrx6YrtBg3xUdxALoyCG+XpssKqmezug(at)mail(dot)gmail(dot)com
[2] https://github.com/EnterpriseDB/zheap/

Patch applying order:
0001-Add-undo-log-manager.patch
0002-Provide-access-to-undo-log-data-via-the-buffer-manag.patch
0003-undo-interface-v3.patch
0004-Add-tests-for-the-undo-log-manager.patch from Cleaning up
orphaned files using undo logs' thread[1]
0004-undo-interface-test-v3.patch

--
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com

Attachment Content-Type Size
0002-Provide-access-to-undo-log-data-via-the-buffer-manag_v2.patch application/x-patch 40.7 KB
0001-Add-undo-log-manager_v2.patch application/x-patch 115.4 KB
0003-undo-interface-v3.patch application/x-patch 67.6 KB
0004-undo-interface-test-v3.patch application/x-patch 6.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2018-11-05 11:40:55 Re: Undo worker and transaction rollback
Previous Message Pavel Stehule 2018-11-05 10:43:16 Re: ToDo: show size of partitioned table