How can I find out which version of PostGIS I have?
Other way to get the minor version is:
SELECT extversion FROM pg_catalog.pg_extension WHERE extname='postgis'