I wrote:> plpgsql doesn't support assigning to array elements :-(.
Drat, forgot a point I intended to make:
You might have better luck working in pltcl; it has better support forarrays than plpgsql does.
regards, tom lane