Re: Review: listagg aggregate

From: Thom Brown <thombrown(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>, Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "David E(dot) Wheeler" <david(at)kineticode(dot)com>, "pgsql-hackers(at)postgresql(dot)org Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Review: listagg aggregate
Date: 2010-02-01 12:11:27
Message-ID: bddc86151002010411j3e5cf7e9y848a0b69d3fdc46b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I noticed that the regression test results don't include the following case:

select string_agg(a) from (values(null),(null)) g(a);

There is one similar where a delimiter is provided.

Which leads me to ask for clarification, would it be safe to assume that
string_agg can never itself return null?

Thom

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message IP 2010-02-01 12:32:40 Allow parentheses around the query expression that follows a WITH clause
Previous Message Leonardo F 2010-02-01 11:09:14 Re: About "Our CLUSTER implementation is pessimal" patch