OpenBSD Handbook

OpenBSD 7.9 release · amd64 · Generated 2026-09-09

py3-pgsanity-0.2.9p0

PostgreSQL SQL syntax checker

Back to search · Project homepage

Description

PgSanity checks the syntax of Postgresql SQL files. It does this by leveraging the ecpg command which is traditionally used for preparing C files with embedded sql for compilation. However, as part of that preparation, ecpg checks the embedded SQL statements for syntax errors using the exact same parser that is in PostgreSQL. So the approach that PgSanity takes is to take a file that has a list of bare SQL in it, make that file look like a C file with embedded SQL, run it through ecpg and let ecpg report on the syntax errors of the SQL.

Package information

Ports path
databases/py-pgsanity
Package architecture
amd64
Maintainer
Daniel Dickman <daniel@openbsd.org>
Categories
databases, lang/python
Available flavors
None listed
Only for architectures
aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, alpha, hppa, sparc64

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Runtime

Build

Test

Installing and updating packages · Package details as JSON