diff options
| author | Hiroshi Inoue | 2000-02-18 09:30:20 +0000 |
|---|---|---|
| committer | Hiroshi Inoue | 2000-02-18 09:30:20 +0000 |
| commit | e3a97b370c2671c05ad95d6a21914c225a0cf32d (patch) | |
| tree | e20b8bdc9dfedef71dfe1367c3b957cbf16c42c1 /src/backend/optimizer | |
| parent | e3befe4a66c68fea03300eadb9d9b2f1c2534dc6 (diff) | |
Implement reindex command
Diffstat (limited to 'src/backend/optimizer')
| -rw-r--r-- | src/backend/optimizer/util/plancat.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/backend/optimizer/util/plancat.c b/src/backend/optimizer/util/plancat.c index e3a60c2c7f0..716c31ab0f1 100644 --- a/src/backend/optimizer/util/plancat.c +++ b/src/backend/optimizer/util/plancat.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.48 2000/02/17 03:39:40 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.49 2000/02/18 09:30:09 inoue Exp $ * *------------------------------------------------------------------------- */ @@ -29,6 +29,8 @@ #include "optimizer/plancat.h" #include "parser/parsetree.h" #include "utils/syscache.h" +#include "catalog/catalog.h" +#include "miscadmin.h" /* @@ -55,7 +57,10 @@ relation_info(Query *root, Index relid, relationObjectId); relation = (Form_pg_class) GETSTRUCT(relationTuple); - *hasindex = (relation->relhasindex) ? true : false; + if (IsIgnoringSystemIndexes() && IsSystemRelationName(NameStr(relation->relname))) + *hasindex = false; + else + *hasindex = (relation->relhasindex) ? true : false; *pages = relation->relpages; *tuples = relation->reltuples; } |
