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)
commit663292eec56ec73e9701ae28c834eb60d7681050
tree1f319a463e07d195363474fdb9a40f9f3cb4c450
parentd9f488dc76dde5ed30a3c02d17dbbbad8f3ed0b6
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