Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group