Casecommons / pg_audit_log

Create a trigger-based audit log for PostgreSQL
MIT License
3 stars 2 forks source link

Fix race condition where two connections both try to create the new month's table #16

Open pjungwir opened 7 years ago

pjungwir commented 7 years ago

We are seeing DuplicateTable exceptions at the beginning of the month, because of simultaneous database hits all trying to create the new month's table. This PR adds some exception handling so that if this happens, we keep going and don't fail to record the application changes.