public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Guyren Howe <[email protected]>
To: [email protected]
Subject: Re: Example for unnest(anyarray, anyarray) fails
Date: Wed, 11 Dec 2019 15:55:01 -0700
Message-ID: <CAKFQuwZZ1vD_fWZqERLkkaC_qGH-X7ijakr0vYLnPWVjqY3wJw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

On Wed, Dec 11, 2019 at 3:21 PM PG Doc comments form <[email protected]>
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.


view thread (2+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Example for unnest(anyarray, anyarray) fails
  In-Reply-To: <CAKFQuwZZ1vD_fWZqERLkkaC_qGH-X7ijakr0vYLnPWVjqY3wJw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox