Re: POC: Cleaning up orphaned files using undo logs

Поиск
Список
Период
Сортировка
Искать
От
Antonin Houska
Тема
Re: POC: Cleaning up orphaned files using undo logs
Дата
Msg-id
16569.1606384035@antos
Ответ на
Список
Дерево обсуждения
POC: Cleaning up orphaned files using undo logs Thomas Munro <thomas.munro@enterprisedb.com>
Re: POC: Cleaning up orphaned files using undo logs Robert Haas <robertmhaas@gmail.com>
Re: POC: Cleaning up orphaned files using undo logs Kuntal Ghosh <kuntalghosh.2007@gmail.com>
Re: POC: Cleaning up orphaned files using undo logs Thomas Munro <thomas.munro@enterprisedb.com>
Re: POC: Cleaning up orphaned files using undo logs Dmitry Dolgov <9erthalion6@gmail.com>
Re: POC: Cleaning up orphaned files using undo logs Thomas Munro <thomas.munro@enterprisedb.com>
Re: POC: Cleaning up orphaned files using undo logs Andres Freund <andres@anarazel.de>
Re: POC: Cleaning up orphaned files using undo logs Thomas Munro <thomas.munro@gmail.com>
Re: POC: Cleaning up orphaned files using undo logs Shawn Debnath <sdn@amazon.com>
Re: POC: Cleaning up orphaned files using undo logs Dilip Kumar <dilipbalaut@gmail.com>
Re: POC: Cleaning up orphaned files using undo logs Robert Haas <robertmhaas@gmail.com>
Re: POC: Cleaning up orphaned files using undo logs Dilip Kumar <dilipbalaut@gmail.com>
Re: POC: Cleaning up orphaned files using undo logs Robert Haas <robertmhaas@gmail.com>
Re: POC: Cleaning up orphaned files using undo logs Dilip Kumar <dilipbalaut@gmail.com>
Amit Kapila  wrote:

> On Wed, Nov 25, 2020 at 8:00 PM Antonin Houska  wrote:

> > I meant that AbortOutOfAnyTransaction should PANIC itself if it sees that
> > there is unapplied undo, so nothing changes for its callers. Do I still miss
> > something?
> >
> 
> Adding PANIC in some generic code-path sounds scary. Why can't we
> simply try to execute undo?

Indeed it should try. I imagined it this way but probably got distracted by
some other thought when writing the email :-)

> > Actually I hit the problem of missing connection when playing with the
> > "undoxacttest" module. Those tests use table_open() / table_close() functions,
> > but it might not be necessary for the real RMGRs.
> >
> 
> How can we apply the action on a page without opening the relation?

If the undo record contains RelFileNode, ReadBufferWithoutRelcache() can be
used, just like it happens with WAL. Not sure how much it would affect zheap.

-- 
Antonin Houska
Web: https://www.cybertec-postgresql.com


В списке pgsql-hackers по дате отправления
От: Antonin Houska
Дата:
От: Anastasia Lubennikova
Дата:
FAQ