]> granicus.if.org Git - postgis/commitdiff
Let users without topology privileges call postgis_full_version()
authorSandro Santilli <strk@keybit.net>
Mon, 24 Feb 2014 10:26:44 +0000 (10:26 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 24 Feb 2014 10:26:44 +0000 (10:26 +0000)
Closes #2655

git-svn-id: http://svn.osgeo.org/postgis/trunk@12273 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/postgis.sql.in

index b46f3136ec0a49cf4a517092962a145e63f4cbcd..de7203c393ad20e477e54d2cc29b5c0398fa61de 100644 (file)
@@ -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