Skip to content

Commit e4f7c51

Browse files
committed
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
1 parent 28e1e5c commit e4f7c51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/sgml/indices.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,8 +732,8 @@ CREATE INDEX people_names ON people ((first_name || ' ' || last_name));
732732

733733
<para>
734734
Index expressions are relatively expensive to maintain, because the
735-
derived expression(s) must be computed for each row upon insertion
736-
and whenever it is updated. However, the index expressions are
735+
derived expression(s) must be computed for each row insertion
736+
and non-HOT update. However, the index expressions are
737737
<emphasis>not</emphasis> recomputed during an indexed search, since they are
738738
already stored in the index. In both examples above, the system
739739
sees the query as just <literal>WHERE indexedcolumn = 'constant'</literal>

0 commit comments

Comments
 (0)