Skip site navigation (1) Skip section navigation (2)

pgsql: In pg_upgrade, copy fsm, vm,and extent files by checking for fi

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: In pg_upgrade, copy fsm, vm,and extent files by checking for fi
Date: 2012-11-14 22:32:12
Message-ID: E1TYlVE-0005b7-TW@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
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(-)

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2012-11-14 22:33:29
Subject: Re: Further pg_upgrade analysis for many tables
Previous:From: Merlin MoncureDate: 2012-11-14 22:28:09
Subject: Re: WIP checksums patch

pgsql-committers by date

Next:From: Tom LaneDate: 2012-11-14 22:39:29
Subject: Re: pgsql: In pg_upgrade, copy fsm, vm, and extent files by checking for fi
Previous:From: Tom LaneDate: 2012-11-14 22:30:46
Subject: pgsql: Fix the int8 and int2 cases of (minimum possible integer) %(-1)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group