How can I find out which version of PostGIS I have?
PostGIS_Lib_Version(); - returns the version number of the PostGIS library.
PostGIS_Lib_Version();
http://postgis.refractions.net/docs/PostGIS_Lib_Version.html