New functionality - detecting PostgreSQL version

Detecting which PostgreSQL version is currently running, throwing suitable exception if version's incompatible.