PostgreSQL Collector
PostgreSQL collector script
Each inspection starts with a bash collector that runs on the target DB host. The script is zero-dependency, writes plain text, and is safe to run in production.
Or with curl
curl -O https://dbcheck.org/collector/pg.sh chmod +x pg.sh
Requirements
bash 4+ · psql 客户端能直连本机 socketpostgres 超级用户(采集 pg_settings / pg_stat_replication 需要)PGHOME 指向 PostgreSQL 安装目录(含 bin/psql)Run it
Output
例:pg_demo-pg-primary_5432_20260605.log。引擎会通过文件内首行的 === primary/standby === 自动识别拓扑。