{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/2"}],"enrichment":{"capability":"Prevents migration downtime by detecting and terminating blocking queries during Postgres migrations, or optionally showing them for manual inspection.","skillfed_tags":["django-ops","postgres-migrations"],"use_cases":["Automatically terminate blocking queries during production migrations to prevent cascading locks.","Inspect and manually manage blocking activity instead of auto-terminating for workloads requiring careful query control.","Set lock timeouts to fail fast if a migration blocks longer than a configured threshold.","Monitor Postgres process IDs during migrations to correlate blocking activity with application logs."],"what_it_does":"django-pgmigrate is a Django management command wrapper that solves a common Postgres migration problem: when long-running transactions hold locks, subsequent migrations queue behind them and block all queries on the affected model. The package detects these blocking queries and either terminates them automatically (the default) or prints them for manual review. It also supports setting lock timeouts to cancel migrations that block too long.\n\nThe package integrates into Django's standard migrate command and requires adding three apps to INSTALLED_APPS. It works with Django 4.2\u20136.0, Python 3.10\u20133.14, and Postgres 14\u201318, making it compatible with modern Django deployments. The two runtime dependencies are django and django-pglock.","worth_installing":"Yes, if you run Django on Postgres and want to reduce migration downtime. The package is straightforward to install, has no security vulnerabilities, and solves a real operational problem. The aging maintenance status is a minor concern but not a blocker\u2014the codebase is stable and compatible with current versions. Install it if migration locking is a pain point; skip it if you use other databases or have short, non-blocking migrations."},"id":"django-pgmigrate","links":{"html":"https://skillfed.io/packages/django-pgmigrate","md":"https://skillfed.io/packages/django-pgmigrate.md","pypi":"https://pypi.org/project/django-pgmigrate/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-11-30","license_spdx":null,"license_treatment":"permissive","name":"django-pgmigrate","python_support":"supports_current","summary":"Avoid costly downtime during Postgres migrations."},"popularity":{"monthly_downloads":989583,"position":4566,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.6.0"}
