diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2018-12-27 10:07:46 +0100 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2018-12-27 10:07:46 +0100 |
commit | ae4472c619341ff0517254d395d74796277622e6 (patch) | |
tree | 5daca0e94126883dae6814c2ecbadc87c085f0db /src/backend/commands/matview.c | |
parent | 5c828307973366f424438b848d4cca6ef98c032e (diff) | |
download | postgresql-ae4472c619341ff0517254d395d74796277622e6.tar.gz postgresql-ae4472c619341ff0517254d395d74796277622e6.zip |
Remove obsolete IndexIs* macros
Remove IndexIsValid(), IndexIsReady(), IndexIsLive() in favor of
accessing the index structure directly. These macros haven't been
used consistently, and the original reason of maintaining source
compatibility with PostgreSQL 9.2 is gone.
Discussion: https://www.postgresql.org/message-id/flat/d419147c-09d4-6196-5d9d-0234b230880a%402ndquadrant.com
Diffstat (limited to 'src/backend/commands/matview.c')
-rw-r--r-- | src/backend/commands/matview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/matview.c b/src/backend/commands/matview.c index a171ebabf8f..7605b302bb5 100644 --- a/src/backend/commands/matview.c +++ b/src/backend/commands/matview.c @@ -870,7 +870,7 @@ is_usable_unique_index(Relation indexRel) if (indexStruct->indisunique && indexStruct->indimmediate && indexRel->rd_rel->relam == BTREE_AM_OID && - IndexIsValid(indexStruct) && + indexStruct->indisvalid && RelationGetIndexPredicate(indexRel) == NIL && indexStruct->indnatts > 0) { |