From: | Dilip Kumar <dilipbalaut(at)gmail(dot)com> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Undo worker and transaction rollback |
Date: | 2018-11-05 11:40:55 |
Message-ID: | CAFiTN-t8fv-qYG9zynhS-1jRrvt_o5C-wCMRtzOsK8S=MXvKKw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Oct 11, 2018 at 11:30 AM Dilip Kumar <dilipbalaut(at)gmail(dot)com> wrote:
>
> Hello, hackers,
>
> In previous threads[1], we proposed patches for generating and storing
> undo records and now for undo-worker and the transaction rollback
> stuff. The idea is that undo remains relevant as long as the
> transaction is in progress and needs to be removed once it becomes
> irrelevant. Specifically, for a committed transaction, it remains
> relevant until the transaction becomes all-visible; zheap will use
> this for MVCC purposes. However, for an aborted transaction, it
> remains relevant until the “undo actions" described by the undo
> records have been performed. This patch introduces code to discard
> undo when it is no longer needed and reuse the associated storage.
> Additionally, this patch adds code to execute undo actions. Let me
> explain the finer details for each of the cases covered,
Latest rebased patch for undo worker and transaction rollback. This
patch includes some bug fixes from the main zheap branch and also
include code for executing undo action using RMGR (RMGR related code
is merged from Thomas' patch set for "POC: Cleaning up orphaned files
using undo logs"[1]. This patch can be applied on top of undolog and
undo-interface patches.
--
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com
Attachment | Content-Type | Size |
---|---|---|
undoworker-transaction-rollback_v2.patch | application/x-patch | 134.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Kuntal Ghosh | 2018-11-05 11:42:40 | Re: POC: Cleaning up orphaned files using undo logs |
Previous Message | Dilip Kumar | 2018-11-05 11:39:35 | Re: Undo logs |