diff options
author | Robert Haas <rhaas@postgresql.org> | 2024-01-26 11:40:16 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2024-01-26 11:40:16 -0500 |
commit | 5eafacd2797dc0b04a0bde25fbf26bf79903e7c2 (patch) | |
tree | 1fc9b93eb07cf4ce8d35706fa4c5c3402c9f59d4 /contrib/test_decoding/test_decoding.c | |
parent | f7cf9494bad3aef1b2ba1cd84376a1e71797ac50 (diff) | |
download | postgresql-5eafacd2797dc0b04a0bde25fbf26bf79903e7c2.tar.gz postgresql-5eafacd2797dc0b04a0bde25fbf26bf79903e7c2.zip |
Combine FSM updates for prune and no-prune cases.
lazy_scan_prune() and lazy_scan_noprune() update the freespace map
with identical conditions; combine them. This consolidation is easier
now that cb970240f13df2b63f0410f81f452179a2b78d6f moved visibility map
updates into lazy_scan_prune().
While combining the FSM updates, simplify the logic for calling
lazy_scan_new_or_empty() and lazy_scan_noprune().
Also update a few comemnts in this part of the code to make them,
hopefully, clearer.
Melanie Plageman and Robert Haas
Discussion: https://postgr.es/m/CA%2BTgmoaLTvipm%3Dxx4rJLr07m908PCu%3DQH3uCjD1UOn8YaEuO2g%40mail.gmail.com
Diffstat (limited to 'contrib/test_decoding/test_decoding.c')
0 files changed, 0 insertions, 0 deletions