From: Sandro Santilli Date: Mon, 24 Feb 2014 10:26:44 +0000 (+0000) Subject: Let users without topology privileges call postgis_full_version() X-Git-Tag: 2.2.0rc1~1227 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8ba47357a8465bf9f34da02611fda26a2d43ff4;p=postgis Let users without topology privileges call postgis_full_version() Closes #2655 git-svn-id: http://svn.osgeo.org/postgis/trunk@12273 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/postgis.sql.in b/postgis/postgis.sql.in index b46f3136e..de7203c39 100644 --- a/postgis/postgis.sql.in +++ b/postgis/postgis.sql.in @@ -2611,6 +2611,10 @@ BEGIN WHEN undefined_function OR invalid_schema_name THEN topo_scr_ver := NULL; RAISE NOTICE 'Function postgis_topology_scripts_installed() not found. Is topology support enabled and topology.sql installed?'; + WHEN insufficient_privilege THEN + RAISE NOTICE 'Topology support cannot be inspected. Is current user granted USAGE on schema "topology" ?'; + WHEN OTHERS THEN + RAISE NOTICE 'Function postgis_topology_scripts_installed() could not be called: % (%)', SQLERRM, SQLSTATE; END; BEGIN