diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-05-03 10:26:14 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-05-03 10:26:14 -0400 |
commit | f884dca4959f64bd47e78102d1dadd2c77d49201 (patch) | |
tree | b9e4ef2b23474981a8cd99d86d7f15e41e5f35f3 /src/include | |
parent | f912d7dec29341d55315fccef8dc3fdfd068c6e3 (diff) | |
download | postgresql-f884dca4959f64bd47e78102d1dadd2c77d49201.tar.gz |
Remove RelationSetIndexList().
In the wake of commit f912d7dec, RelationSetIndexList isn't used any
more. It was always a horrid wart, so getting rid of it is very nice.
We can also convert rd_indexvalid back to a plain boolean.
Discussion: https://postgr.es/m/28926.1556664156@sss.pgh.pa.us
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/utils/rel.h | 4 | ||||
-rw-r--r-- | src/include/utils/relcache.h | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h index bddfcafe26..d7f33abce3 100644 --- a/src/include/utils/rel.h +++ b/src/include/utils/rel.h @@ -60,8 +60,8 @@ typedef struct RelationData bool rd_islocaltemp; /* rel is a temp rel of this session */ bool rd_isnailed; /* rel is nailed in cache */ bool rd_isvalid; /* relcache entry is valid */ - char rd_indexvalid; /* state of rd_indexlist: 0 = not valid, 1 = - * valid, 2 = temporarily forced */ + bool rd_indexvalid; /* is rd_indexlist valid? (also rd_pkindex and + * rd_replidindex) */ bool rd_statvalid; /* is rd_statlist valid? */ /* diff --git a/src/include/utils/relcache.h b/src/include/utils/relcache.h index 809d6aa123..364495a5f0 100644 --- a/src/include/utils/relcache.h +++ b/src/include/utils/relcache.h @@ -66,9 +66,6 @@ extern void RelationGetExclusionInfo(Relation indexRelation, Oid **procs, uint16 **strategies); -extern void RelationSetIndexList(Relation relation, - List *indexIds); - extern void RelationInitIndexAccessInfo(Relation relation); /* caller must include pg_publication.h */ |