koopjs / koop-pgcache

PostGIS cache for Koop.
Other
4 stars 4 forks source link

end broken transaction and retry #49

Closed dmfenton closed 8 years ago

dmfenton commented 8 years ago

This PR fixes an issue that occurs when tables are dropped during partial inserts. We end up in a situation where the last transaction was aboted and postgres will not accept any new requests.

A clause in _query catches this specific error code and retries the previous query. There is a guard parameter to prevent this from resulting in an endless loop.

ungoldman commented 8 years ago

:cool: :dog: