Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Context manager to acquire Postgres advisory locks #138
This Postgres feature is invaluable when dealing with synchronisations,
When we export a record, we are able to acquire a lock on the exported record
The Postgres advisory lock comes handy there for they allow to acquire an
Since both jobs are executed concurrently, they both create a record for category X.
See http://topopps.com/implementing-postgres-advisory-locks/ for the article