Add view_exists? to PostgreSQL/GP; add view tests