I have Ubuntu Server (16.04) with installed PostgreSQL (9.5) and PostGIS (2.2). I have also installed GDAL 2.1 (from ubuntugis/ppa) and I need PostGIS to use it. But when I check:
SELECT PostGIS_GDAL_Version();
it writes:
GDAL 1.11.3, released 2015/09/16
So, it uses the obsolete version of GDAL that came from somewhere else.
How can I point PostGIS to the proper version of GDAL? Is it a question of environment variables or PostGIS configuration?