test for postgis only if postgresql