Fixing an issue related the 'CHECK OPTION' (introduced PostgreSQL 9.4) is only
applicable to the views, and not the materialized views