pgsql: In pg_upgrade, copy fsm, vm, and extent files by checking for fi - Mailing list pgsql-committers

From Bruce Momjian
Subject pgsql: In pg_upgrade, copy fsm, vm, and extent files by checking for fi
Date
Msg-id E1TYlVE-0005b7-TW@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: In pg_upgrade, copy fsm, vm, and extent files by checking for fi
List pgsql-committers
In pg_upgrade, copy fsm, vm, and extent files by checking for file
existence via open(), rather than collecting a directory listing and
looking up matching relfilenode files with sequential scans of the
array.  This speeds up pg_upgrade by 2x for a large number of tables,
e.g. 16k.

Per observation by Ants Aasma.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/29add0de4920e4f448a30bfc35798b939c211d97

Modified Files
--------------
contrib/pg_upgrade/file.c        |   55 ----------
contrib/pg_upgrade/pg_upgrade.h  |    2 -
contrib/pg_upgrade/relfilenode.c |  208 +++++++++++++++-----------------------
3 files changed, 82 insertions(+), 183 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix the int8 and int2 cases of (minimum possible integer) % (-1)
Next
From: Tom Lane
Date:
Subject: Re: pgsql: In pg_upgrade, copy fsm, vm, and extent files by checking for fi