Обсуждение: pgsql: Prefix PruneState->all_{visible,frozen} with set_

Поиск
Список
Период
Сортировка

pgsql: Prefix PruneState->all_{visible,frozen} with set_

От
Melanie Plageman
Дата:
Prefix PruneState->all_{visible,frozen} with set_

The PruneState had members called "all_visible" and "all_frozen" which
reflect not the current state of the page but the state it could be in
once pruning and freezing have been executed. These are then saved in
the PruneFreezeResult so the caller can set the VM accordingly.

Prefix the PruneState members as well as the corresponsding
PruneFreezeResult members with "set_" to clarify that they represent the
proposed state of the all-visible and all-frozen bits for a heap page in
the visibility map, not the current state.

Author: Melanie Plageman <melanieplageman@gmail.com>
Suggested-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/bqc4kh5midfn44gnjiqez3bjqv4zogydguvdn446riw45jcf3y%404ez66il7ebvk

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/34cb4254bdb6d344e2440c721abc11196982ccd5

Modified Files
--------------
src/backend/access/heap/pruneheap.c  | 146 ++++++++++++++++++-----------------
src/backend/access/heap/vacuumlazy.c |  18 ++---
src/include/access/heapam.h          |  13 ++--
3 files changed, 91 insertions(+), 86 deletions(-)