-- Table Rules
-- DROP RULE qualification_trace_insert_ignore ON traitement."Qualification_trace";
CREATE RULE qualification_trace_insert_ignore AS ON INSERT TO "Acapulco"."Qualification_trace" WHERE (EXISTS ( SELECT 1 FROM "Acapulco"."Qualification_trace" WHERE ((("Qualification_trace".lot_liv)::text = (new.lot_liv)::text) AND (("Qualification_trace".id_liv)::text = (new.id_liv)::text) AND ("Qualification_trace".geom = new.geom)))) DO INSTEAD NOTHING;