[postgis-tickets] r14770 - avoid adding search_path to functions that take internals for input

Regina Obe lr at pcorp.us
Wed Mar 9 23:02:39 PST 2016


Author: robe
Date: 2016-03-09 23:02:39 -0800 (Wed, 09 Mar 2016)
New Revision: 14770

Modified:
   branches/2.2/utils/postgis_proc_set_search_path.pl
Log:
avoid adding search_path to functions that take internals for input
closes #3497 for 2.2
reference #3490 cleanup avoid drop* functsion as well.

Modified: branches/2.2/utils/postgis_proc_set_search_path.pl
===================================================================
--- branches/2.2/utils/postgis_proc_set_search_path.pl	2016-03-10 06:35:48 UTC (rev 14769)
+++ branches/2.2/utils/postgis_proc_set_search_path.pl	2016-03-10 07:02:39 UTC (rev 14770)
@@ -105,9 +105,10 @@
 			$endhead = 1;
 		}
 		
-		if ( /add(geometry|overview|raster)/i){
+		if ( /((add|drop)[\_]*(geometry|overview|raster)|internal)/i){
 			# can't put search_path on addgeometrycolumn or addrasterconstraints 
 			# since table names are sometimes passed in non-qualified
+			# also can't work on some functions that take internals
 			$search_path_safe = 0; 
 		}
 		



More information about the postgis-tickets mailing list