how to find postgis and postregsql version code example Example: get postgis version SELECT PostGIS_Version();