Add materialized view to docs of pg_get_viewdef() functions.
Move call to ExecCheckRelationsScannable() past call to ExecInitNode().

Per suggestion from Noah Misch.
Add public function pg_relation_is_scannable().