small suggested change for examples in array docs

From: hernan gonzalez <hgonzalez(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: small suggested change for examples in array docs
Date: 2011-01-13 16:03:27
Message-ID: AANLkTi=AVPAWnjnGA2ngGW+uGbE3ZnxCFEqJt38tFb6_@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Most examples in the array documentation uses ARRAY[1,2,3] and similar.

http://www.postgresql.org/docs/9.0/interactive/functions-array.html

I think (actually I have experienced it, both in myself and others)
that this can be misleading in some cases.
For example: array_upper(ARRAY[1,2,3,4], 1) => 4 : (is this '4' a
value or an index ?)
Something like ARRAY[10,20,30,40] would be a better choice.

Hernán

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2011-01-13 16:18:02 Re: Case Sensitivity
Previous Message Pavel Stehule 2011-01-13 15:39:05 Re: Case Sensitivity