Is it just me, or is the json_array_element(json, int) function notdocumented?
(Not a bug in this patch, I think ...)
-- Álvaro Herrera http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services