Postgres Query Lock Explainer
github.com · Open source · Quiet
Command line tool that lists the locks a Postgres query takes
- Data & databases
- Open source
- Python
- Day-7 check
- Day-30 check
- Stars
- 311
- Forks
- 5
- Open issues
- 0
- Last commit
- Found
- 3 years ago
GitHub figures as of . They are context, not a ranking.
This command line utility shows which locks a given PostgreSQL query would acquire, similar to EXPLAIN. The maker began it to help prevent deadlocks during migrations and never finished it, and it suits engineers planning schema migrations who want to check lock impact.
Repository description on GitHub: “Command line utility to show what locks will be acquired by a given query.”
What it does
- Lists the locks a PostgreSQL query would acquire
- Runs the query inside a transaction and rolls it back
- Prints relation IDs, names and lock types in a table
Good for
- Check which locks a migration query takes before running it
- Plan schema changes to reduce deadlock risk
Suits: Engineers planning PostgreSQL schema migrations.
Worth knowing: The readme warns against running it on a production database
What you can try
Read the README on GitHub and install from source.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw Postgres Query Lock Explainer on , when admtal posted it to Show HN. GitHub listed no published releases for AdmTal/PostgreSQL-Query-Lock-Explainer when checked , so the project may ship straight from its main branch. The repository was created .
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- Show HN discussion at check time: 143 points, 14 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 no new release
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
- Show HN discussion at check time: 143 points, 14 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: AdmTal/PostgreSQL-Query-Lock-Explainer
- Found: admtal posted it to Show HN. Show HN
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was Postgres Query Lock Explainer released?
- No dated release record is available. Kip found it on Show HN on 17 May 2023.
- Is Postgres Query Lock Explainer open source?
- Its source is public on GitHub at AdmTal/PostgreSQL-Query-Lock-Explainer under the MIT licence.
- What does Postgres Query Lock Explainer run on?
- Command line.
- Is Postgres Query Lock Explainer free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is Postgres Query Lock Explainer still maintained?
- It has had no commit or release for over a year as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | AdmTal/PostgreSQL-Query-Lock-Explainer REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-35981238. Summary written by KipFound’s editor.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.