SELECT * FROM pg_extension WHERE extname = 'postgis';
