>> Great, looks good to me, marking as ready for committer.
What is wrong with using IF ?
-- Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services