PgSanity

JSON →
library 0.3.0 ·python
verified Apr 13, 2026

PgSanity is a Python utility that checks the syntax of PostgreSQL SQL files. It operates by leveraging the `ecpg` command-line tool, which is part of the PostgreSQL client development tools. This allows `pgsanity` to use the exact same parser as PostgreSQL to identify SQL syntax errors, making it a reliable tool for quality assurance and testing of SQL scripts. The current version is 0.3.0, and it maintains a regular release cadence.

total hits 36
actors 10 distinct systems
last hit 1d ago Amazonbot
ByteDance
8
Script
3
GPTBot
2
Amazonbot
1
ClaudeBot
1
Search engines
2
Humans
3

top countries 🇩🇪 Germany · 🇸🇬 Singapore · 🇺🇸 United States · 🇫🇷 France · 🇫🇮 Finland