I saw this in the mailing list archives without an answer, so for futurereference:
DECLARE... line TEXT;BEGIN... FOR line IN EXECUTE ''EXPLAIN ANALYZE <statement goes here> LOOP RAISE NOTICE ''% '' , line; END LOOP;