In pg_upgrade, use cached copy of directory listing, rather than calling

Bruce Momjian <bruce@momjian.us>

Commit: ad06db2610f479d559ee4a3b9e3241d40be07440
Author: Bruce Momjian <bruce@momjian.us>
Date: 2010-10-20T00:33:19Z
Releases: 9.1.0
In pg_upgrade, use cached copy of directory listing, rather than calling
scandir() with a pattern for every table.

Optimization after report of pg_upgrade slowness with 150k tables.

Files

PathChange+/−
contrib/pg_upgrade/info.c modified +8 −7
contrib/pg_upgrade/pg_upgrade.h modified +10 −15
contrib/pg_upgrade/relfilenode.c modified +56 −32