mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +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:
@ -289,7 +289,7 @@ btree_index_checkable(Relation rel)
|
||||
errdetail("Index \"%s\" is associated with temporary relation.",
|
||||
RelationGetRelationName(rel))));
|
||||
|
||||
if (!IndexIsValid(rel->rd_index))
|
||||
if (!rel->rd_index->indisvalid)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||
errmsg("cannot check index \"%s\"",
|
||||
|
Reference in New Issue
Block a user