]> granicus.if.org Git - postgis/commitdiff
PostGIS upgrade scripts missing GRANT for views
authorRegina Obe <lr@pcorp.us>
Tue, 20 Dec 2016 00:07:54 +0000 (00:07 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 20 Dec 2016 00:07:54 +0000 (00:07 +0000)
references #3680 for trunk (PostGIS 2.4)

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

utils/postgis_proc_upgrade.pl

index 0425b016855b2e53913dac5ed2c671618bb78cb7..ebf7cf61f6e554633bd31fbb11b910c5cbe088c5 100755 (executable)
@@ -378,6 +378,17 @@ EOF
                        last if /\;\s*$/;
                }
        }
+       
+       # Always output grant permissions (see ticket #3680)
+       if ( /^grant select\s+(\S+)\s*/i )
+       {
+               print;
+               while(<INPUT>)
+               {
+                       print;
+                       last if /\;\s*$/;
+               }
+       }
 
        # Always output create ore replace rule 
        if ( /^create or replace rule\s+(\S+)\s*/i )