We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi there,
I saw some advice on https://devcenter.heroku.com/articles/release-phase#design-considerations that suggests grabbing an "advisory lock" on the database before running a migration.
Basically, try SELECT pg_try_advisory_lock(migration); at the start of the transaction.
SELECT pg_try_advisory_lock(migration);
t
I think that would be a one-line change in this module. Good idea?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi there,
I saw some advice on https://devcenter.heroku.com/articles/release-phase#design-considerations that suggests grabbing an "advisory lock" on the database before running a migration.
Basically, try
SELECT pg_try_advisory_lock(migration);
at the start of the transaction.t
then nothing currently has the lock, called 'migration', so proceed.The lock will be release when the transaction commits or rolls back.
I think that would be a one-line change in this module. Good idea?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: