This patch refactors away some duplicated code in the index AM build
Neil Conway <neilc@samurai.com>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/gist/gist.c | modified | +3 −22 |
| src/backend/access/hash/hash.c | modified | +3 −22 |
| src/backend/access/nbtree/nbtree.c | modified | +3 −22 |
| src/backend/access/rtree/rtree.c | modified | +3 −22 |
| src/backend/catalog/index.c | modified | +33 −2 |
| src/include/catalog/index.h | modified | +3 −2 |