postgres create table from materialized view