This is " Another PostgreSQL Diff Tool" library. The home page of the project can be found at: http://apgdiff.sourceforge.net The library is able to produce a SQL script which migrates one database schema into another.