> What programming language are these scripts written in ?
perl. using the DBD:Pg interface instead of command-lining it through psql