diff options
author | Tomas Vondra <tomas.vondra@postgresql.org> | 2021-01-17 22:11:39 +0100 |
---|---|---|
committer | Tomas Vondra <tomas.vondra@postgresql.org> | 2021-01-17 22:28:26 +0100 |
commit | 7db0cd2145f2bce84cac92402e205e4d2b045bf2 (patch) | |
tree | 478bd930393c975061012a742250bf72a8d38c1c /src/backend/access/transam/xlog.c | |
parent | 0c7d3bb99f72d66ec6ac63aee4c5fe6d683eee86 (diff) | |
download | postgresql-7db0cd2145f2bce84cac92402e205e4d2b045bf2.tar.gz postgresql-7db0cd2145f2bce84cac92402e205e4d2b045bf2.zip |
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
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions