postgresql/src
Tomas Vondra 7db0cd2145 Set PD_ALL_VISIBLE and visibility map bits in COPY FREEZE
Make sure COPY FREEZE marks the pages as PD_ALL_VISIBLE and updates the
visibility map. Until now we only marked individual tuples as frozen,
but page-level flags were not updated, so the first VACUUM after the
COPY FREEZE had to rewrite the whole table.

This is a fairly old patch, and multiple people worked on it. The first
version was written by Jeff Janes, and then reworked by Pavan Deolasee
and Anastasia Lubennikova.

Author: Anastasia Lubennikova, Pavan Deolasee, Jeff Janes
Reviewed-by: Kuntal Ghosh, Jeff Janes, Tomas Vondra, Masahiko Sawada,
             Andres Freund, Ibrar Ahmed, Robert Haas, Tatsuro Ishii,
             Darafei Praliaskouski
Discussion: https://postgr.es/m/CABOikdN-ptGv0mZntrK2Q8OtfUuAjqaYMGmkdU1dCKFtUxVLrg@mail.gmail.com
Discussion: https://postgr.es/m/CAMkU%3D1w3osJJ2FneELhhNRLxfZitDgp9FPHee08NT2FQFmz_pQ%40mail.gmail.com
2021-01-17 22:28:26 +01:00
..
backend Set PD_ALL_VISIBLE and visibility map bits in COPY FREEZE 2021-01-17 22:28:26 +01:00
bin Revert "psql \dX: list extended statistics objects" 2021-01-17 15:11:14 +01:00
common Rework refactoring of hex and encoding routines 2021-01-14 11:13:24 +09:00
fe_utils
include Set PD_ALL_VISIBLE and visibility map bits in COPY FREEZE 2021-01-17 22:28:26 +01:00
interfaces
makefiles
pl
port Move our p{read,write}v replacements into their own files. 2021-01-14 11:16:59 +13:00
template Improve our heuristic for selecting PG_SYSROOT on macOS. 2021-01-15 11:28:51 -05:00
test Add missing array-enlargement logic to test_regex.c. 2021-01-17 12:53:48 -05:00
timezone
tools Rework refactoring of hex and encoding routines 2021-01-14 11:13:24 +09:00
tutorial Doc, more or less: uncomment tutorial example that was fixed long ago. 2021-01-13 16:00:03 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in
Makefile.shlib
nls-global.mk