support for materialized views from Thomas Kelllerer