]> granicus.if.org Git - postgis/commitdiff
build_histogram2d sets 'local' search_path.
authorSandro Santilli <strk@keybit.net>
Wed, 2 Jun 2004 16:21:06 +0000 (16:21 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 2 Jun 2004 16:21:06 +0000 (16:21 +0000)
fix_geometry_columns sets to NULL cached data for unexistant tables.

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

postgis.sql.in

index af264a4901d7c82fb15b6fb4be228c5392de89e2..df777a030d952dee804da1be731ca0dd1e2d8ad6 100644 (file)
@@ -756,6 +756,12 @@ BEGIN
 
 #if USE_VERSION < 75
        -- Until PG75 we mantain a custom statistic field
+
+       UPDATE geometry_columns SET
+               attrelid = NULL,
+               varattnum = NULL,
+               stats = NULL;
+
        UPDATE geometry_columns SET attrelid = (
                SELECT c.oid 
                FROM pg_class c, pg_attribute a, pg_namespace n
@@ -3111,7 +3117,7 @@ CREATE OR REPLACE FUNCTION build_histogram2d (histogram2d,text,text,text)
 RETURNS histogram2d
 AS '
 BEGIN
-       EXECUTE ''SET search_path = ''||$2||'',public'';
+       EXECUTE ''SET local search_path = ''||$2||'',public'';
        RETURN public.build_histogram2d($1,$3,$4);
 END
 ' LANGUAGE 'plpgsql'  with (isstrict);