]> granicus.if.org Git - postgresql/commit
During pg_upgrade, conditionally skip transfer of FSMs.
authorAmit Kapila <akapila@postgresql.org>
Fri, 15 Mar 2019 02:55:57 +0000 (08:25 +0530)
committerAmit Kapila <akapila@postgresql.org>
Fri, 15 Mar 2019 02:55:57 +0000 (08:25 +0530)
commit13e8643bfc29d3c1455c0946281cdfc24758ffb6
treeb2a5eaa226c5eb9202dc5e70457288ad9722a711
parent2fadf24e249bd72fc517663a91a233437460671c
During pg_upgrade, conditionally skip transfer of FSMs.

If a heap on the old cluster has 4 pages or fewer, and the old cluster
was PG v11 or earlier, don't copy or link the FSM. This will shrink
space usage for installations with large numbers of small tables.

This will allow pg_upgrade to take advantage of commit b0eaa4c51b where
we have avoided creation of the free space map for small heap relations.

Author: John Naylor
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/CACPNZCu4cOdm3uGnNEGXivy7Gz8UWyQjynDpdkPGabQ18_zK6g%40mail.gmail.com
doc/src/sgml/ref/pgupgrade.sgml
src/bin/pg_upgrade/info.c
src/bin/pg_upgrade/pg_upgrade.h
src/bin/pg_upgrade/relfilenode.c