Detect PostgreSQL version and abort if incompatible
Merge pull request #11 from maxamel:master