Added the ability to override the PostgreSQL version when generating the
diff.

Added a special attribute pgsql-ver when generating code definition to
store the current used pgsql version.

Minor change the on Connection class to return the full version or only
the major of the server.