Re: collect_corrupt_items_vacuum.patch

Поиск
Список
Период
Сортировка
Искать
От
Alexander Korotkov
Тема
Re: collect_corrupt_items_vacuum.patch
Дата
Msg-id
CAPpHfdt635ay8KpZ_drMRHSFs=a17RYEh3uqx2BnW-p8S6oMQQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
collect_corrupt_items_vacuum.patch Daniel Shelepanov <deniel1495@mail.ru>
Re: collect_corrupt_items_vacuum.patch Robert Haas <robertmhaas@gmail.com>
Re: collect_corrupt_items_vacuum.patch Tom Lane <tgl@sss.pgh.pa.us>
Re: collect_corrupt_items_vacuum.patch Robert Haas <robertmhaas@gmail.com>
Re: collect_corrupt_items_vacuum.patch Michael Paquier <michael@paquier.xyz>
Re: collect_corrupt_items_vacuum.patch Nikita Malakhov <hukutoc@gmail.com>
Re: collect_corrupt_items_vacuum.patch Nikita Malakhov <hukutoc@gmail.com>
Re: collect_corrupt_items_vacuum.patch Daniel Gustafsson <daniel@yesql.se>
Re: collect_corrupt_items_vacuum.patch Alexander Korotkov <aekorotkov@gmail.com>
Re: collect_corrupt_items_vacuum.patch Alexander Lakhin <exclusion@gmail.com>
Re: collect_corrupt_items_vacuum.patch Alexander Korotkov <aekorotkov@gmail.com>
Re: collect_corrupt_items_vacuum.patch Alexander Lakhin <exclusion@gmail.com>
Re: collect_corrupt_items_vacuum.patch Alexander Korotkov <aekorotkov@gmail.com>
Re: collect_corrupt_items_vacuum.patch Alexander Lakhin <exclusion@gmail.com>
Re: collect_corrupt_items_vacuum.patch Dmitry Koval <d.koval@postgrespro.ru>
Re: collect_corrupt_items_vacuum.patch Alexander Korotkov <aekorotkov@gmail.com>
Re: collect_corrupt_items_vacuum.patch Dmitry Koval <d.koval@postgrespro.ru>
Re: collect_corrupt_items_vacuum.patch Alexander Korotkov <aekorotkov@gmail.com>
Re: collect_corrupt_items_vacuum.patch Alexander Korotkov <aekorotkov@gmail.com>
Re: collect_corrupt_items_vacuum.patch Noah Misch <noah@leadboat.com>
Re: collect_corrupt_items_vacuum.patch Alexander Korotkov <aekorotkov@gmail.com>
Re: collect_corrupt_items_vacuum.patch Noah Misch <noah@leadboat.com>
Re: collect_corrupt_items_vacuum.patch Heikki Linnakangas <hlinnaka@iki.fi>
Re: collect_corrupt_items_vacuum.patch Alexander Korotkov <aekorotkov@gmail.com>
Re: collect_corrupt_items_vacuum.patch Alexander Korotkov <aekorotkov@gmail.com>
Re: collect_corrupt_items_vacuum.patch Heikki Linnakangas <hlinnaka@iki.fi>
Hi!

On Tue, Dec 5, 2023 at 9:03 PM Dmitry Koval  wrote:
> I agree with Alexander Lakhin about PROC_IN_VACUUM and
> VISHORIZON_DATA_STRICT:
> 1) probably manipulations with the PROC_IN_VACUUM flag in
> pg_visibility.c were needed for condition [1] and can be removed now;

Right, PROC_IN_VACUUM is no longer required.  The possible benefit of
it would be to avoid bloat during a possibly long run of
pg_visibility() function.  But the downside are problems with the
snapshot if the invoking query contains something except a single call
of the pg_visibility() function, and complexity.  Removed.

> 2) the VISHORIZON_DATA_STRICT macro is probably unnecessary too (since
> we are not going to use it in the GlobalVisHorizonKindForRel() function).

Makes sense, removed.

> Also It would be nice to remove the get_strict_xid_horizon() function
> from the comment (replace to GetStrictOldestNonRemovableTransactionId()?).

Right, fixed.

The revised patch is attached.  Besides the fixes above, it contains
improvements for comments and the detailed commit message.

Tom, Robert, what do you think about the patch attached?  It required
a new type of xid horizon in core and sacrifices accuracy.  But this
is the only way I can imagine, we can fix the problem in a general
way.

------
Regards,
Alexander Korotkov
В списке pgsql-hackers по дате отправления
От: Andrei Lepikhov
Дата:
Сообщение: Re: POC: GROUP BY optimization
От: Amit Kapila
Дата:
FAQ