doc: improve description of subscripting of arrays
authorBruce Momjian <bruce@momjian.us>
Mon, 31 Aug 2020 17:49:17 +0000 (13:49 -0400)
committerBruce Momjian <bruce@momjian.us>
Mon, 31 Aug 2020 17:49:17 +0000 (13:49 -0400)
commit06eba0fd10b1c19d578b90f6ab792834fe9a7418
tree57025a9bb09341190c9d35619aaabbf65846adc9
parent47c427d006267d752fee4655543ec99dabe9e61d
doc:  improve description of subscripting of arrays

It wasn't clear the non-integers are cast to integers for subscripting,
rather than throwing an error.

Reported-by: sean@materialize.io
Discussion: https://postgr.es/m/159538675800.624.7728794628229799531@wrigleys.postgresql.org

Backpatch-through: 9.5
doc/src/sgml/syntax.sgml