 ---------------
 --PRIMARY KEY--
 ---------------
+
 ALTER TABLE ONLY gn_profiles.t_parameters 
 	ADD CONSTRAINT pk_parameters PRIMARY KEY (id_parameter);
 

LEFT JOIN taxonomie.taxref t ON p.cd_ref=t.cd_ref;


-----------
-- INDEX --
-----------

	WHERE name='id_valid_status_for_profiles'
	)
GROUP BY t.cd_ref;

CREATE UNIQUE INDEX ON gn_profiles.vm_valid_profiles (cd_ref);

CREATE MATERIALIZED VIEW gn_profiles.vm_cor_taxon_phenology AS 
WITH classified_data AS (
