Re: Historic snapshot doesn't track txns committed in BUILDING_SNAPSHOT state

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Historic snapshot doesn't track txns committed in BUILDING_SNAPSHOT state
Дата
Msg-id Zmax4EfDk67g1LVl@paquier.xyz
обсуждение исходный текст
Ответ на Historic snapshot doesn't track txns committed in BUILDING_SNAPSHOT state  ("cca5507" <cca5507@qq.com>)
Ответы Re: Historic snapshot doesn't track txns committed in BUILDING_SNAPSHOT state
Список pgsql-hackers
On Sun, Jun 09, 2024 at 11:21:52PM +0800, cca5507 wrote:
> Hello hackers, I found that we currently don't track txns committed in
> BUILDING_SNAPSHOT state because of the code in xact_decode():
>     /*
>      * If the snapshot isn't yet fully built, we cannot decode anything, so
>      * bail out.
>      */
>     if (SnapBuildCurrentState(builder) < SNAPBUILD_FULL_SNAPSHOT)
>         return;
>
> The output of pub's log:
> ERROR:  could not map filenumber "base/5/16395" to relation OID
>
> Is this a bug? Should we also track the txns committed in BUILDING_SNAPSHOT state?

Clearly, this is not an error you should be able to see as a user.  So
yes, that's something that needs to be fixed.
--
Michael

Вложения

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

Предыдущее
От: Bertrand Drouvot
Дата:
Сообщение: Re: Proposal to add page headers to SLRU pages
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Proposal to add page headers to SLRU pages