More code for 9.2+ including a function to check PG version using integers