Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id A76A69FB82E for ; Mon, 11 Jun 2007 10:53:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 63136-05 for ; Mon, 11 Jun 2007 10:52:19 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.228]) by postgresql.org (Postfix) with ESMTP id A94FE9FB828 for ; Mon, 11 Jun 2007 10:52:25 -0300 (ADT) Received: by wx-out-0506.google.com with SMTP id s16so1363544wxc for ; Mon, 11 Jun 2007 06:52:24 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=kdfJRqZlknNU5v+r1dD4vpW2EYbGxF+HsWe2GHORFWqcAOgcIkT81DP1qtPTeT8TECUueH27wO2toXlqXNyEJRvSzd+2ZvOg/nP9RCTcIa8drAoAFqFu+TiBjdoDWXwUoW36bGx+NBBo6qfypyvs4RblbgXxaAXfvoCgb09JigA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=IFytXIxDfVtzKwK/zzDTq1rA8djW9wHaKBwRpwnQbLw03BPuQhvolQbxFlAmNBGHnkVESbLfoKuwivQyag6gXnEA/6YuwPnbYNNzxRUMZmDSXl9nr+WIRpXnGxYqFHq5YAe6dlxlFISQBC1ji3E4fwszIIjUkYwPwAsTbTRClk0= Received: by 10.70.46.1 with SMTP id t1mr8551749wxt.1181569944281; Mon, 11 Jun 2007 06:52:24 -0700 (PDT) Received: by 10.70.118.16 with HTTP; Mon, 11 Jun 2007 06:52:24 -0700 (PDT) Message-ID: <965aa3ed0706110652k496af68di8217d488fa6e297a@mail.gmail.com> Date: Mon, 11 Jun 2007 19:22:24 +0530 From: "Nimesh Satam" To: "Michael Fuhr" Subject: Re: pg_statistic doesnt contain details for specific table Cc: "Heikki Linnakangas" , pgsql-performance@postgresql.org, database@zedo.com In-Reply-To: <20070611132953.GA32879@winnie.fuhr.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_75918_17637968.1181569944250" References: <965aa3ed0706110150g6f5e85bevfb4be0b50b649271@mail.gmail.com> <466D0DB4.2080404@enterprisedb.com> <965aa3ed0706110158r27c9c19aj32a87d9ccf7e2383@mail.gmail.com> <20070611132953.GA32879@winnie.fuhr.org> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/180 X-Sequence-Number: 25213 ------=_Part_75918_17637968.1181569944250 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Michael, Following is the output of Vacuum analze on the same table: *psql =# VACUUM ANALYZE verbose cam_attr; INFO: vacuuming "public.cam_attr" INFO: index "cam_attr_pk" now contains 11829 row versions in 63 pages DETAIL: 0 index pages have been deleted, 0 are currently reusable. CPU 0.00s/0.00u sec elapsed 0.00 sec. INFO: "cam_attr": found 0 removable, 11829 nonremovable row versions in 103 pages DETAIL: 0 dead row versions cannot be removed yet. There were 236 unused item pointers. 0 pages are entirely empty. CPU 0.00s/0.00u sec elapsed 0.00 sec. INFO: analyzing "public.cam_attr" INFO: "cam_attr": scanned 103 of 103 pages, containing 11829 live rows and 0 dead rows; 6000 rows in sample, 11829 estimated total rows VACUUM * Also how do we check if the statistics are set to Zero for the table? Regards, Nimesh. On 6/11/07, Michael Fuhr wrote: > > On Mon, Jun 11, 2007 at 02:28:32PM +0530, Nimesh Satam wrote: > > We have already used analyze command on the table. > > We have also ran the vacuum analyze command. > > > > But they are not helping. > > Is there any data in the table? What does ANALYZE VERBOSE or VACUUM > ANALYZE VERBOSE show for this table? Is there any chance that > somebody set all of the columns' statistics targets to zero? > > -- > Michael Fuhr > ------=_Part_75918_17637968.1181569944250 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Michael,
 
 
Following is the output of Vacuum analze on the same table:
 
 
psql =# VACUUM ANALYZE verbose cam_attr;
INFO:  vacuuming "public.cam_attr"
INFO:  index "cam_attr_pk" now contains 11829 row versions in 63 pages
DETAIL:  0 index pages have been deleted, 0 are currently reusable.
CPU 0.00s/0.00u sec elapsed 0.00 sec.
INFO:  "cam_attr": found 0 removable, 11829 nonremovable row versions in 103 pages
DETAIL:  0 dead row versions cannot be removed yet.
There were 236 unused item pointers.
0 pages are entirely empty.
CPU 0.00s/0.00u sec elapsed 0.00 sec.
INFO:  analyzing "public.cam_attr"
INFO:  "cam_attr": scanned 103 of 103 pages, containing 11829 live rows and 0 dead rows; 6000 rows in sample, 11829 estimated total rows
VACUUM


Also how do we check if the statistics are set to Zero for the table?
 
Regards,
Nimesh.
 
 
On 6/11/07, Michael Fuhr <mike@fuhr.org> wrote:
On Mon, Jun 11, 2007 at 02:28:32PM +0530, Nimesh Satam wrote:
> We have already used analyze command on the table.
> We have also ran the vacuum analyze command.
>
> But they are not helping.

Is there any data in the table?  What does ANALYZE VERBOSE or VACUUM
ANALYZE VERBOSE show for this table?  Is there any chance that
somebody set all of the columns' statistics targets to zero?

--
Michael Fuhr

------=_Part_75918_17637968.1181569944250--