diff options
Diffstat (limited to 'src/backend/access/rtree/rtree.c')
-rw-r--r-- | src/backend/access/rtree/rtree.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/access/rtree/rtree.c b/src/backend/access/rtree/rtree.c index 53c9d7946bf..34cf0b6c937 100644 --- a/src/backend/access/rtree/rtree.c +++ b/src/backend/access/rtree/rtree.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.43 2000/01/26 05:56:00 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.44 2000/03/01 05:39:23 inoue Exp $ * *------------------------------------------------------------------------- */ @@ -261,12 +261,13 @@ rtbuild(Relation heap, { Oid hrelid = RelationGetRelid(heap); Oid irelid = RelationGetRelid(index); + bool inplace = IsReindexProcessing(); heap_close(heap, NoLock); index_close(index); - UpdateStats(hrelid, nh, true); - UpdateStats(irelid, ni, false); - if (oldPred != NULL) + UpdateStats(hrelid, nh, inplace); + UpdateStats(irelid, ni, inplace); + if (oldPred != NULL && !inplace) { if (ni == nh) pred = NULL; |