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
#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
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);