Well, both Python's and PostgreSQL's choice how to handle duplicates are just that, clear-cut choices. But they cannot be reconciled without violating POLA. Karsten --
psycopg by date:
Соглашаюсь с условиями обработки персональных данных