postgres version for endpoints script