The attached fixed a small typo in json_agg_transfn.
-- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services