Re: string_to_array with an empty input string

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Greg Stark <gsstark(at)mit(dot)edu>, Thom Brown <thom(at)linux(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: string_to_array with an empty input string
Date: 2010-08-11 18:47:58
Message-ID: 4C62F05E.6050802@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 08/11/2010 02:39 PM, David E. Wheeler wrote:
> On Aug 11, 2010, at 11:35 AM, Andrew Dunstan wrote:
>
>>> for i in select array_subscripts(myarray, 1) loop ...
>> That's not a built-in function AFAIK.
> Pavel pointed out to me only yesterday that it is:
>
> http://www.postgresql.org/docs/current/static/functions-srf.html#FUNCTIONS-SRF-SUBSCRIPTS
>
>

except that you mis-spelled it: It's generate_subscripts(), not
array_subscripts().

I guess I must have missed that in the 8.4 features.

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2010-08-11 19:06:10 Re: Regression tests versus the buildfarm environment
Previous Message Kevin Grittner 2010-08-11 18:42:12 Re: BUG #5607: memmory leak in ecpg