Re: Statement-level rollback - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Statement-level rollback
Date
Msg-id CA+TgmobUtQi53-xC3=-thtKWaSiUyp5tye05WBtHB=PjoMNALA@mail.gmail.com
Whole thread Raw
In response to Re: Statement-level rollback  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
List pgsql-hackers
On Fri, Dec 7, 2018 at 7:25 PM Alexander Korotkov
<a.korotkov@postgrespro.ru> wrote:
> The first thing, which comes to the mind is undo log.  When you have
> undo log, then on new subtransaction you basically memorize the
> current undo log position.  If subtransaction rollbacks, you have to
> just play back undo log until reach memorized position.  This might be
> an option for zheap.  But actually, I didn't inspect zheap code to
> understand how far we're from this.

Yeah, zheap works this way.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [HACKERS] Bug when dumping "empty" operator classes
Next
From: Robert Haas
Date:
Subject: Re: Statement-level rollback