From: Regina Obe Date: Tue, 20 Dec 2016 00:07:54 +0000 (+0000) Subject: PostGIS upgrade scripts missing GRANT for views X-Git-Tag: 2.4.0alpha~189 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4701f37c52389cca3150f794637fb0c2bc301e91;p=postgis PostGIS upgrade scripts missing GRANT for views references #3680 for trunk (PostGIS 2.4) git-svn-id: http://svn.osgeo.org/postgis/trunk@15276 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/utils/postgis_proc_upgrade.pl b/utils/postgis_proc_upgrade.pl index 0425b0168..ebf7cf61f 100755 --- a/utils/postgis_proc_upgrade.pl +++ b/utils/postgis_proc_upgrade.pl @@ -378,6 +378,17 @@ EOF last if /\;\s*$/; } } + + # Always output grant permissions (see ticket #3680) + if ( /^grant select\s+(\S+)\s*/i ) + { + print; + while() + { + print; + last if /\;\s*$/; + } + } # Always output create ore replace rule if ( /^create or replace rule\s+(\S+)\s*/i )