Re: collect_corrupt_items_vacuum.patch

From: Dmitry Koval <d(dot)koval(at)postgrespro(dot)ru>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: collect_corrupt_items_vacuum.patch
Date: 2023-12-05 19:03:37
Message-ID: dc247df2-34ee-4d19-8294-86d1f391b57f@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi!

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;
2) the VISHORIZON_DATA_STRICT macro is probably unnecessary too (since
we are not going to use it in the GlobalVisHorizonKindForRel() function).

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

[1]
https://github.com/postgres/postgres/blob/4d0cf0b05defcee985d5af38cb0db2b9c2f8dbae/src/backend/storage/ipc/procarray.c#L1812

--
With best regards,
Dmitry Koval

Postgres Professional: http://postgrespro.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Davin Shearer 2023-12-05 19:50:23 Re: Emitting JSON to file using COPY TO
Previous Message Joe Conway 2023-12-05 18:51:22 Re: Emitting JSON to file using COPY TO