This patch refactors away some duplicated code in the index AM build
authorNeil Conway <neilc@samurai.com>
Wed, 11 May 2005 06:24:55 +0000 (06:24 +0000)
committerNeil Conway <neilc@samurai.com>
Wed, 11 May 2005 06:24:55 +0000 (06:24 +0000)
commit314043749573f8638bd779298860828c44484ca4
tree022cf49a537345221bb512067269c26688d0e4cd
parentff868d8161b9b07bc7e311a295119fa843899a7f
This patch refactors away some duplicated code in the index AM build
methods: they all invoke UpdateStats() since they have computed the
number of heap tuples, so I created a function in catalog/index.c that
each AM now calls.
src/backend/access/gist/gist.c
src/backend/access/hash/hash.c
src/backend/access/nbtree/nbtree.c
src/backend/access/rtree/rtree.c
src/backend/catalog/index.c
src/include/catalog/index.h