In pg_upgrade, use cached copy of directory listing, rather than calling
Bruce Momjian <bruce@momjian.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |