From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
Cc: | Bryn Llewellyn <bryn(at)yugabyte(dot)com>, pgsql-general list <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Where's the doc for "array()" — as in "select array(values (17), (42))" |
Date: | 2022-09-19 00:00:07 |
Message-ID: | CAKFQuwb5tr4r4xjooXXwuuC+orJusgGxd4=uGs9SHhGNywzPLw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sunday, September 18, 2022, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:
> On 9/18/22 13:25, Bryn Llewellyn wrote:
>
>> I noticed that "array()" is used in the query that implements the "\du"
>> psql meta-command. It has some similarity with "array_agg()" thus:
>>
>> create temporary view x(v) as (values (17), (42));
>> select array_agg(v) from x;
>> select array(select v from x);
>>
>>
> Anyway, I can't find where "array()" is documented. Google does find me a
>> hit on stackexchange.com <http://stackexchange.com>. But it doesn't
>> x-ref to the PG doc.
>>
>
> https://www.postgresql.org/docs/current/sql-expressions.html
>
Which on can find fairly directly via the index entry for array:
https://www.postgresql.org/docs/current/bookindex.html#indexdiv-A
Or browsing the syntax chapter via the table of contents (everything is
either a function or syntax, and you ruled out the former).
https://www.postgresql.org/docs/current/sql-syntax.html
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Bryn Llewellyn | 2022-09-19 04:20:01 | Re: Where's the doc for "array()" — as in "select array(values (17), (42))" |
Previous Message | Adrian Klaver | 2022-09-18 21:29:30 | Re: Where's the doc for "array()" — as in "select array(values (17), (42))" |