I have updated the patch with additional tests and comments per your review. Final(?) version attached.
Applied on head, make check ok. No more comments on the code which does what it says. I'm fine with this patch.
-- Fabien. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers