From: Sandro Santilli Date: Wed, 2 Jun 2004 16:21:06 +0000 (+0000) Subject: build_histogram2d sets 'local' search_path. X-Git-Tag: pgis_0_9_1~231 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74db0229b8d4346b26afab082ec3d0b22b411f60;p=postgis build_histogram2d sets 'local' search_path. 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 --- diff --git a/postgis.sql.in b/postgis.sql.in index af264a490..df777a030 100644 --- a/postgis.sql.in +++ b/postgis.sql.in @@ -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);