postgresql/src/backend
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
..
access Set PD_ALL_VISIBLE and visibility map bits in COPY FREEZE 2021-01-17 22:28:26 +01:00
bootstrap
catalog Add pg_stat_database counters for sessions and session time 2021-01-17 13:52:31 +01:00
commands Prevent excess SimpleLruTruncate() deletion. 2021-01-16 12:21:35 -08:00
executor Pass down "logically unchanged index" hint. 2021-01-13 08:11:00 -08:00
foreign
jit
lib
libpq
main
nodes Re-implement pl/pgsql's expression and assignment parsing. 2021-01-04 11:52:00 -05:00
optimizer
parser Re-implement pl/pgsql's expression and assignment parsing. 2021-01-04 11:52:00 -05:00
partitioning
po
port
postmaster Add pg_stat_database counters for sessions and session time 2021-01-17 13:52:31 +01:00
regex Fix ancient bug in parsing of BRE-mode regular expressions. 2021-01-08 12:16:00 -05:00
replication Ensure that a standby is able to follow a primary on a newer timeline. 2021-01-14 12:27:11 +09:00
rewrite
snowball
statistics
storage Prevent excess SimpleLruTruncate() deletion. 2021-01-16 12:21:35 -08:00
tcop Add pg_stat_database counters for sessions and session time 2021-01-17 13:52:31 +01:00
tsearch
utils Add pg_stat_database counters for sessions and session time 2021-01-17 13:52:31 +01:00
.gitignore
common.mk
Makefile
nls.mk