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/indexcmds.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/indexcmds.c')
-rw-r--r-- | src/backend/commands/indexcmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index 6c06167fb2a..62ec387486e 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -224,7 +224,7 @@ CheckIndexCompatible(Oid oldId, */ if (!(heap_attisnull(tuple, Anum_pg_index_indpred, NULL) && heap_attisnull(tuple, Anum_pg_index_indexprs, NULL) && - IndexIsValid(indexForm))) + indexForm->indisvalid)) { ReleaseSysCache(tuple); return false; @@ -976,7 +976,7 @@ DefineIndex(Oid relationId, ConstraintSetParentConstraint(cldConstrOid, createdConstraintId); - if (!IndexIsValid(cldidx->rd_index)) + if (!cldidx->rd_index->indisvalid) invalidate_parent = true; found = true; |