Closed haubourg closed 5 years ago
The error is here
IntegrityError: duplicate key value violates unique constraint "ouvrepere_pkey" DETAIL: Key (id)=(00f0d8f3-1d38-4c27-b735-f9732e59b645) already exists
So you mean get rid of the stacktrace ?
The idea is to expose the PG stacktrace, but not in a python red stacktrace (this is perceived as a plugin error, not a database error)
Good to me too. Just wondering if replaying should be available for DELETE. If a delete replay succeeds, it means an object have caught the same id as the deleted one. This should not happen for databases with serials or uuid, but for other codes, it could happen, and that could trigger data deletion where it's not advisable to.
Inserting twice is less problematic, it's not destroying anyhing.
@3nids any opinion ?
Ex: replaying an insert event on a table with a primary key will fail. currently pg_history_viewer raises a python exception, when it should just nicely warn replay failed and why.