mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +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:
@@ -153,7 +153,7 @@ static void ResetReindexPending(void);
|
||||
*
|
||||
* Caller must have suitable lock on the relation.
|
||||
*
|
||||
* Note: we intentionally do not check IndexIsValid here; that's because this
|
||||
* Note: we intentionally do not check indisvalid here; that's because this
|
||||
* is used to enforce the rule that there can be only one indisprimary index,
|
||||
* and we want that to be true even if said index is invalid.
|
||||
*/
|
||||
@@ -1792,7 +1792,7 @@ BuildIndexInfo(Relation index)
|
||||
|
||||
/* other info */
|
||||
ii->ii_Unique = indexStruct->indisunique;
|
||||
ii->ii_ReadyForInserts = IndexIsReady(indexStruct);
|
||||
ii->ii_ReadyForInserts = indexStruct->indisready;
|
||||
/* assume not doing speculative insertion for now */
|
||||
ii->ii_UniqueOps = NULL;
|
||||
ii->ii_UniqueProcs = NULL;
|
||||
|
||||
Reference in New Issue
Block a user