Re: Subscript expressions do not have to evaluate to integers

2020-08-31 Thread Bruce Momjian
On Sat, Aug 22, 2020 at 01:34:35PM -0700, David G. Johnston wrote: > On Sat, Aug 22, 2020 at 8:47 AM Bruce Momjian wrote: > > On Fri, Aug 21, 2020 at 07:21:30PM -0700, David G. Johnston wrote: > > On Fri, Aug 21, 2020 at 6:22 PM Tom Lane wrote: > > > >     Bruce Momjian writes:

Re: Subscript expressions do not have to evaluate to integers

2020-08-22 Thread David G. Johnston
On Sat, Aug 22, 2020 at 8:47 AM Bruce Momjian wrote: > On Fri, Aug 21, 2020 at 07:21:30PM -0700, David G. Johnston wrote: > > On Fri, Aug 21, 2020 at 6:22 PM Tom Lane wrote: > > > > Bruce Momjian writes: > > > On Wed, Jul 22, 2020 at 02:59:18AM +, PG Doc comments form > wrote: > >

Re: Subscript expressions do not have to evaluate to integers

2020-08-22 Thread Bruce Momjian
On Fri, Aug 21, 2020 at 07:21:30PM -0700, David G. Johnston wrote: > On Fri, Aug 21, 2020 at 6:22 PM Tom Lane wrote: > > Bruce Momjian writes: > > On Wed, Jul 22, 2020 at 02:59:18AM +, PG Doc comments form wrote: > >> I believe a more appropriate statement would acknowledge that

Re: Subscript expressions do not have to evaluate to integers

2020-08-21 Thread David G. Johnston
On Fri, Aug 21, 2020 at 6:22 PM Tom Lane wrote: > Bruce Momjian writes: > > On Wed, Jul 22, 2020 at 02:59:18AM +, PG Doc comments form wrote: > >> I believe a more appropriate statement would acknowledge that at least > some > >> values undergo an explicit-style conversion to an integer. >

Re: Subscript expressions do not have to evaluate to integers

2020-08-21 Thread Tom Lane
Bruce Momjian writes: > On Wed, Jul 22, 2020 at 02:59:18AM +, PG Doc comments form wrote: >> I believe a more appropriate statement would acknowledge that at least some >> values undergo an explicit-style conversion to an integer. > OK, how is the attached patch? "and" is not an improvement

Re: Subscript expressions do not have to evaluate to integers

2020-08-21 Thread Bruce Momjian
On Wed, Jul 22, 2020 at 02:59:18AM +, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/12/sql-expressions.html > Description: > > Section 4.2.3. Subscripts of the documentation states: > > > Each

Subscript expressions do not have to evaluate to integers

2020-07-22 Thread PG Doc comments form
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/12/sql-expressions.html Description: Section 4.2.3. Subscripts of the documentation states: > Each subscript is itself an expression, which must yield an integer value. However, the