Re: [GSoC] array processing questions

2018-06-23 Thread Andrew Gierth
> "Charles" == Charles Cui  writes:

 Charles> Hi mentors and hackers,
 Charles> One question about array processing in postgresql. Assume
 Charles> my input is a Datum (which contains an array). Are there any
 Charles> examples to loop through the array and operates on each
 Charles> element? feel like it is not that straight-ford.

See array_iter_setup and array_iter_next

-- 
Andrew (irc:RhodiumToad)



[GSoC] array processing questions

2018-06-23 Thread Charles Cui
Hi mentors and hackers,

One question about array processing in postgresql. Assume my input is a
Datum (which contains an array). Are there any examples to loop through the
array and operates on each element? feel like it is not that straight-ford.

Thanks Charles