Re: Array functions, array_length behavior given an empty array

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: "oleg(dot)rekin(at)gmail(dot)com" <oleg(dot)rekin(at)gmail(dot)com>, Pg Docs <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: Array functions, array_length behavior given an empty array
Date: 2021-11-08 17:21:24
Message-ID: CAFj8pRAp=AeTONo3-YRYvSEGwVB7VD_DZoSAEVwkgUb--iOgOw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

po 8. 11. 2021 v 18:11 odesílatel David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> napsal:

> On Monday, November 8, 2021, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
> wrote:
>
>> Hi
>>
>> po 8. 11. 2021 v 13:48 odesílatel PG Doc comments form <
>> noreply(at)postgresql(dot)org> napsal:
>>
>>> The following documentation comment has been logged on the website:
>>>
>>> I believe, such case deserves to be mentioned in the description and/or
>>> in
>>> examples.
>>>
>>
>> you can read related discussion
>> https://pgsql-hackers.postgresql.narkive.com/lZJQ64dp/array-length-anyarray
>>
>> Use instead function cardinality
>>
>
> I believe the OP has a point that we could do better with the
> documentation though. Especially now that we’ve performed the function
> table reformatting.
>

+1

Pavel

> David J.
>

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Peter Eisentraut 2021-11-10 07:38:00 Re: Add link to unicode collation docs
Previous Message David G. Johnston 2021-11-08 17:11:58 Re: Array functions, array_length behavior given an empty array