postgis version on ubuntu code example
Example 1: get postgis version
SELECT PostGIS_Version();
Example 2: check postgres version in ubuntu
$ locate bin/postgres
/usr/lib/postgresql/9.3/bin/postgres
SELECT PostGIS_Version();
$ locate bin/postgres
/usr/lib/postgresql/9.3/bin/postgres