diff options
author | Bruce Momjian <bruce@momjian.us> | 2021-12-22 16:29:16 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2021-12-22 16:29:16 -0500 |
commit | e4f7c5144533c6ee9a84e1b1a30cedb20a3ebc75 (patch) | |
tree | fca0fd247c82ac12de9d72e7a8a40f4eca428a74 | |
parent | 28e1e5c2a91ccc2ad8f2749f36f0ac8eb3bca759 (diff) |
doc: clarify when expression indexes evaluate their expressions
Only non-HOT updates evaluate the index expression.
Reported-by: Chris Lowder
Discussion: https://postgr.es/m/163967385701.26064.15365003480975321072@wrigleys.postgresql.org
Backpatch-through: 10
-rw-r--r-- | doc/src/sgml/indices.sgml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/indices.sgml b/doc/src/sgml/indices.sgml index 671299ff059..0eeed4676a9 100644 --- a/doc/src/sgml/indices.sgml +++ b/doc/src/sgml/indices.sgml @@ -732,8 +732,8 @@ CREATE INDEX people_names ON people ((first_name || ' ' || last_name)); <para> Index expressions are relatively expensive to maintain, because the - derived expression(s) must be computed for each row upon insertion - and whenever it is updated. However, the index expressions are + derived expression(s) must be computed for each row insertion + and non-HOT update. However, the index expressions are <emphasis>not</emphasis> recomputed during an indexed search, since they are already stored in the index. In both examples above, the system sees the query as just <literal>WHERE indexedcolumn = 'constant'</literal> |