pgsql: Deduplicate choice of horizon for a relation procarray.c.

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Deduplicate choice of horizon for a relation procarray.c.
Дата
Msg-id E1m7UuB-0007GK-3Y@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Deduplicate choice of horizon for a relation procarray.c.

5a1e1d83022 was a minimal bug fix for dc7420c2c92. To avoid future bugs of
that kind, deduplicate the choice of a relation's horizon into a new helper,
GlobalVisHorizonKindForRel().

As the code in question was only introduced in dc7420c2c92 it seems worth
backpatching this change as well, otherwise 14 will look different from all
other branches.

A different approach to this was suggested by Matthias van de Meent.

Author: Andres Freund
Discussion: https://postgr.es/m/20210621122919.2qhu3pfugxxp3cji@alap3.anarazel.de
Backpatch: 14, like 5a1e1d83022

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d9d8aa9bb9aa2a850f53facd2c91e454129af57b

Modified Files
--------------
src/backend/storage/ipc/procarray.c | 101 +++++++++++++++++++++++-------------
1 file changed, 66 insertions(+), 35 deletions(-)


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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: Make the standby server promptly handle interrupt signals.
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Deduplicate choice of horizon for a relation procarray.c.