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/access | |
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/access')
-rw-r--r-- | src/backend/access/heap/tuptoaster.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/heap/tuptoaster.c b/src/backend/access/heap/tuptoaster.c index d1dad998d28..d26c081a1b0 100644 --- a/src/backend/access/heap/tuptoaster.c +++ b/src/backend/access/heap/tuptoaster.c @@ -1667,7 +1667,7 @@ toast_save_datum(Relation rel, Datum value, for (i = 0; i < num_indexes; i++) { /* Only index relations marked as ready can be updated */ - if (IndexIsReady(toastidxs[i]->rd_index)) + if (toastidxs[i]->rd_index->indisready) index_insert(toastidxs[i], t_values, t_isnull, &(toasttup->t_self), toastrel, |