From: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | martin(dot)kalcher(at)aboutsource(dot)net, pgsql-docs(at)lists(dot)postgresql(dot)org |
Subject: | Re: Proposal to improve uniq function documentation in intarray extension |
Date: | 2022-06-03 17:05:57 |
Message-ID: | D7E669C7-9E4A-4598-A8CD-9DAD97397696@yesql.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
> On 3 Jun 2022, at 17:34, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> .. there's no longer any reason we have
> to limit ourselves to one example. I propose this:
>
> diff --git a/doc/src/sgml/intarray.sgml b/doc/src/sgml/intarray.sgml
> index f930c08eeb..18c6f8c3ba 100644
> --- a/doc/src/sgml/intarray.sgml
> +++ b/doc/src/sgml/intarray.sgml
> @@ -131,6 +131,11 @@
> </para>
> <para>
> Removes adjacent duplicates.
> + Often used with <function>sort</function> to remove all duplicates.
> + </para>
> + <para>
> + <literal>uniq('{1,2,2,3,1,1}'::integer[])</literal>
> + <returnvalue>{1,2,3,1}</returnvalue>
> </para>
> <para>
> <literal>uniq(sort('{1,2,3,2,1}'::integer[]))</literal>
+1
--
Daniel Gustafsson https://vmware.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2022-06-03 17:55:52 | Re: Proposal to improve uniq function documentation in intarray extension |
Previous Message | Tom Lane | 2022-06-03 15:34:21 | Re: Proposal to improve uniq function documentation in intarray extension |