https://pt.stackoverflow.com/questions/102903/deletar-registro-duplicado-da-tabela-no-postgresql?answertab=votes#tab-top
Related Posts
How to non interactively provide password for the PostgreSQL interactive terminal
Loop on tables with PL/pgSQL in Postgres 9.0+
How To Delete Duplicate Rows in PostgreSQL
PostgreSQL ODBC Driver (psqlODBC) connection strings
Rails + Postgres drop error: database is being accessed by other users
Delete files older than 10 days using shell script in Unix