From: Bruce Momjian Date: Mon, 31 Aug 2020 17:49:17 +0000 (-0400) Subject: doc: improve description of subscripting of arrays X-Git-Tag: REL_10_15~97 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=663292eec56ec73e9701ae28c834eb60d7681050;p=postgresql.git 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 --- diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index c91554821f4..bdd6345d73f 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -1383,7 +1383,7 @@ CREATE FUNCTION dept(text) RETURNS dept (Here, the brackets [ ] are meant to appear literally.) Each subscript is itself an expression, - which must yield an integer value. + which will be rounded to the nearest integer value.