Re: Example for unnest(anyarray, anyarray) fails

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Guyren Howe <guyren(at)gmail(dot)com>, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Example for unnest(anyarray, anyarray) fails
Date: 2019-12-11 22:55:01
Message-ID: CAKFQuwZZ1vD_fWZqERLkkaC_qGH-X7ijakr0vYLnPWVjqY3wJw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Wed, Dec 11, 2019 at 3:21 PM PG Doc comments form <noreply(at)postgresql(dot)org>
wrote:

> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/9.6/functions-array.html
> Description:
>
> [...]

> ghowe=# select unnest(ARRAY[1,2],ARRAY['foo','bar','baz']);
> ERROR: function unnest(integer[], text[]) does not exist
> LINE 1: select unnest(ARRAY[1,2],ARRAY['foo','bar','baz'])
> ^
> HINT: No function matches the given name and argument types. You might
> need
> to add explicit type casts.
>

As your query doesn't place the unnest function in the FROM clause as the
documentation says is required it is to be expected that your query fails.
The subsequent part of that sentence links you over to the section of the
documentation that provides a full example. The one in the table is
intended as a quick-reference.

David J.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Jeremy Schneider 2019-12-12 22:07:14 wait event docs
Previous Message PG Doc comments form 2019-12-11 21:04:05 Example for unnest(anyarray, anyarray) fails