On Aug 11, 2010, at 9:36 AM, Tom Lane wrote: >> >> I believe those are all "", rather than '"' + undef + '"'. > > If you believe my previous opinion that the design center for these > functions is arrays of numbers, then a zero-entry text[] array is what > you want, because you can successfully cast it to a zero-entry array of > integers or floats or whatever. Returning a single empty string will > make those cases fail. So at the moment I'm on the side of the fence > that says zero-entry array is the best answer.
Seems to be precedent for that: % perl -E 'say scalar @{[ split ",", ""]}' 0 Best, David -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers