You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there's an SQL error during update of generalized tables, imposm run continues with the generalized table update to the end, despite the Postgres transaction being aborted, and the only error reported by imposm is:
[error] Importing #4758661: pq: Could not complete operation in a failed transaction
This error isn't helpful, and because imposm does not detect the transaction is aborted, there are many current transaction is aborted, commands ignored until end of transaction block errors in the Postgres logs, which make it tedious to dig out the original error.
If there is an error, imposm should immediately abort the update and report the original error to the imposm logs. It should not keep feeding statements into an aborted transaction which fill up the Postgres logs with errors.
Your Environment
Version used: 0.11.1
Postgres 13.2, PostGIS 3.1
The text was updated successfully, but these errors were encountered:
It looks like this only happens for runtime (rather than prepare-time) SQL errors. Calling an undefined function results in the expected behaviour of the error being reported.
The undesired behaviour is happening when the function emits a runtime error (ERROR: invalid input syntax for type numeric).
If there's an SQL error during update of generalized tables,
imposm run
continues with the generalized table update to the end, despite the Postgres transaction being aborted, and the only error reported by imposm is:This error isn't helpful, and because imposm does not detect the transaction is aborted, there are many
current transaction is aborted, commands ignored until end of transaction block
errors in the Postgres logs, which make it tedious to dig out the original error.If there is an error, imposm should immediately abort the update and report the original error to the imposm logs. It should not keep feeding statements into an aborted transaction which fill up the Postgres logs with errors.
Your Environment
The text was updated successfully, but these errors were encountered: