To use precomputed result sets for your queries, issue the set materialized_view_optimization command for the session.
create {precomputed result set | materialized view} prs_name [(alternative_column_name [ [constraint constraint_name] unique (column_name,...)] [{immediate | manual} refresh] [{populate | nopopulate}] [enable | disable] [{enable | disable} use in optimization] [lock { datarows | datapages | allpages}] [on segment_name] [partition_clause] as query_expression
If you drop the base table, the precomputed result set is changed to disabled.See Reference Manual: Commands.