 select "value"
 from "trimmed";
 $$ language sql strict immutable;
+*/
 ------------------------------
 
 -- ROLE


		sv_delete := sv_delete || 
			format('
			drop view if exists %s cascade;
			',
			sv_name_slug_with_geom
			);
	end loop;
	
	att_view_name := format('attr_%s', sv_name_slug);
	sv_delete := sv_delete || 
			format('
			drop materialized view if exists %s;
			',
			att_view_name
			);
	
	

		create unique index on %s (resourceinstanceid);
		
		',
		att_table_name,
		node_create, 
		geometry_node_id, 
		tile_create,
		att_table_name);
	
	execute att_view;
	
	return att_table_name;
end;
$$;

