PostgreSQL: Adjusted detection of materialized views support