Sven Willenberger <sven@xxxxxxx> writes: > The problem stems from being unable to assign values to an array without > first initializing the array in plpgsql. I think we changed this in 8.0. Before 8.0, trying to assign to an element of a NULL array yielded a NULL result array, but I think now we let you produce a one-element array that way. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@xxxxxxxxxxxxxx)