Re: SSI rw-conflicts and 2PC

Поиск
Список
Период
Сортировка
От Dan Ports
Тема Re: SSI rw-conflicts and 2PC
Дата
Msg-id 20120215002431.GR11222@csail.mit.edu
обсуждение исходный текст
Ответ на Re: SSI rw-conflicts and 2PC  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-hackers
On Tue, Feb 14, 2012 at 10:04:15AM +0200, Heikki Linnakangas wrote:
> Perhaps it would be simpler to add the extra information to the commit 
> records of the transactions that commit after the first transaction is 
> prepared. In the commit record, you would include a list of prepared 
> transactions that this transaction conflicted with. During recovery, you 
> would collect those lists in memory, and use them at the end of recovery 
> to flag the conflicts in prepared transactions that are still in 
> prepared state.

Yeah, doing it that way might be a better strategy if we wanted to go
that route. I hadn't really considered it because I'm not that familiar
with the xlog code (plus, the commit record already contains a variable
length field, making it that much more difficult to add another).

Dan

-- 
Dan R. K. Ports              MIT CSAIL                http://drkp.net/


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Marko Kreen
Дата:
Сообщение: Re: pg_test_fsync performance
Следующее
От: Dan Ports
Дата:
Сообщение: Re: SSI rw-conflicts and 2PC