
				do $$ 
				declare
				  _r record;
				begin
				  for _r in 
				     select distinct registry_id::bigint as registry_id, upload_file_name from returned_temp_W8C8KGZHZVVC6SQ9VP3AXZPQP13WU8OE
				  loop
					call r45.p_registry_import_mek(_r.registry_id,_r.upload_file_name);
				  end loop;		
				end; $$
			
