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)
commit58eb1760baa67a36e71b26f9ed2ddc86a1cac03d
treec350f5e7dc4e087360f989b0c05a9903660c794a
parenta76d83a00a9151dda2d1258100421ba493d6229a
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: http://postgr.es/m/159538675800.624.7728794628229799531@wrigleys.postgresql.org

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