Postgres Automatically Remove Duplicates