SectorLabs/django-postgres-extra

Is there a way to return rows which were inserted vs updated?

joshuakoh1 opened this issue · 1 comments

Ideally the row + bool representing created/updated like update_or_create but any form of distinction would be helpful further processing

No, there is no good way to do this. PostgreSQL simply doesn't return this information. Version 1.x of this package tried some hacks to do this and it caused all sorts of problems and it was removed.

If you really need this, don't use this package and use some raw SQL that caters to your use case.