OSDN Git Service

In pg_upgrade, use cached copy of directory listing, rather than calling
authorBruce Momjian <bruce@momjian.us>
Wed, 20 Oct 2010 00:33:19 +0000 (00:33 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 20 Oct 2010 00:33:19 +0000 (00:33 +0000)
commitad06db2610f479d559ee4a3b9e3241d40be07440
treeb1e35acce006a12c0ae545f453afb1ff352b9a2c
parent07456b45e6359e8a15807e3f71c0f2e6a76fa4e9
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.
contrib/pg_upgrade/info.c
contrib/pg_upgrade/pg_upgrade.h
contrib/pg_upgrade/relfilenode.c