pgScript is a scripting language for pgAdmin and is based on the T-SQL syntax. It provides control-of-flow capabilities, local variables and powerful random data generators in addition to the SQL (PostgreSQL) language. pgScript is included into pgAdmin.