NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #2856 most downloaded on PyPI
Postgres locking routines and lock table access.
Last release 10 months ago
30 Nov 2025
Ships fairly regularly
a new release about every 4 months
Nearly every release is documented
notes for 15 of 15 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
15 releases · first in 2022
One column per quarter.
Drop Python 3.9 support, add Python 3.14 support, add Postgres 18 support, add Django 6.0 support by @wesleykendall in #21
Minor typing and docstring improvements by @max-muoto in #18 .
Changed project ownership to AmbitionEng by @wesleykendall in #17 .
AmbitionEng by @wesleykendall in #17.Added Python 3.13 support, dropped Python 3.8. Added Postgres17 support by @wesleykendall in #16 .
Add missing py.typed file by @max-muoto in #15 .
Improve type-checking for public interface by @max-muoto in #14 .
Support transaction-level locks by @wesleykendall in #13 .
Support transaction-level locks by @wesleykendall in #13.
Use pglock.advisory(xact=True) for transaction-level advisory locks. Both context manager and functional invocations are supported.
Fix ReadTheDocs builds. [Wesley Kendall, f1b9c5c ]
Django 5.0 compatibility [Wesley Kendall, 5197c72 ]
Django 5.0 compatibility [Wesley Kendall, 5197c72]
Support and test against Django 5 with psycopg2 and psycopg3.
Added Opus10 branding to docs [Wesley Kendall, 80e8466 ]
Add Python3.12 support and use Mkdocs for documentation [Wesley Kendall, d706755]
Add Python3.12 support and use Mkdocs for documentation [Wesley Kendall, d706755]
Python 3.12 and Postgres 16 are supported now, along with having revamped docs using Mkdocs and the Material theme.
Python 3.7 support was dropped.
Added Python 3.11, Django 4.2, and Psycopg 3 support [Wesley Kendall, 62c86bf]
Added Python 3.11, Django 4.2, and Psycopg 3 support [Wesley Kendall, 62c86bf]
Adds Python 3.11, Django 4.2, and Psycopg 3 support along with tests for multiple Postgres versions. Drops support for Django 2.2.
Support PG15 [Wesley Kendall, 31edec7]
Support PG15 [Wesley Kendall, 31edec7]
PG15 is supported and tested
Fix PG10-13 issues. [Wesley Kendall, bf2036b]
Fix PG10-13 issues. [Wesley Kendall, bf2036b]
The waitstart column in the pg_locks view wasn't introduced until Postgres14.
If using earlier versions, django-pglock will return null for these columns.
Initial release of django-pglock [Wesley Kendall, 731e0cc]
Initial release of django-pglock [Wesley Kendall, 731e0cc]
django-pglock performs advisory locks, table locks, and helps manage blocking locks.
Here's some of the functionality at a glance:
pglock.advisory for application-level locking, for example, ensuring that tasks don't overlap.pglock.model for locking an entire model.pglock.timeout for dynamically setting the timeout to acquire a lock.pglock.prioritize to kill blocking locks for critical code, such as migrations.PGLock and BlockedPGLock models for querying active and blocked locks.pglock management command that wraps the models and provides other utilities.Your coding agent can read these notes before it upgrades. Set up the MCP server →