@Christian_Reich:
I would love to contribute. Thank you for the information. I will look into making the pull request.
in case anybody hits this thread in the future, this is how i removed the duplicates in Postgresql:
CREATE TABLE concept_synonym_temp as SELECT * FROM concept_synonym;
TRUNCATE TABLE concept_synonym;
INSERT INTO (concept_id, concept_synonym_name, language_concept_id)
SELECT concept_id, concept_synonym_name, language_concept_id
FROM concept_synonym_temp
GROUP BY concept_id, concept_synonym_name, language_concept_id;
DROP TABLE concept_synonym_temp;
Since there is no primary key on concept_synonym, I added a unique constraint on all columns:
ALTER TABLE concept_synonym ADD CONSTRAINT uq_concept_synonym
UNIQUE (concept_id, concept_synonym_name, language_concept_id);