From c0631ec024cc4b1093d9c39141505ee8f1ec1b65 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 9 Apr 2013 22:43:27 +0000 Subject: [PATCH] Fix access to random memory during ANALYZE The bug was introduced with previous commit, see #2269 As part of this fix, the stawidth field of pg_statistics is changed to represent the average _compressed_ size rather than the average _uncompressed_ size of non-null geometry values. This may have some consequence on the planner (not known at time of commit). git-svn-id: http://svn.osgeo.org/postgis/trunk@11276 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/geometry_estimate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/postgis/geometry_estimate.c b/postgis/geometry_estimate.c index c61a68ffb..94a5a2593 100644 --- a/postgis/geometry_estimate.c +++ b/postgis/geometry_estimate.c @@ -872,7 +872,6 @@ compute_geometry_stats(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfunc, for (i=0; i