mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
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
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user