Pgsql-utilities is a project mainly written in PHP, it's free.
A collection of PostgreSQL utilities
Some scripts require command line PHP compiled with pgsql support, some require pnctl, and others require PDO. Python scripts require psycopg2.
It's a hodgepodge of scripts, use at your own risk!