Re: Array functions, array_length behavior given an empty array

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(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:11:58
Message-ID: CAKFQuwZUFG_aWQj5NpGpuiKGF9=BCPCHwWMjcECc6zqx4cdWmA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

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.

David J.

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Pavel Stehule 2021-11-08 17:21:24 Re: Array functions, array_length behavior given an empty array
Previous Message Pavel Stehule 2021-11-08 16:38:49 Re: Array functions, array_length behavior given an empty array