Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TWSlv-0001yt-R6 for pgsql-admin@postgresql.org; Thu, 08 Nov 2012 14:07:55 +0000 Received: from mail-pa0-f46.google.com ([209.85.220.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TWSlt-0006IK-Kv for pgsql-admin@postgresql.org; Thu, 08 Nov 2012 14:07:55 +0000 Received: by mail-pa0-f46.google.com with SMTP id hz1so2008585pad.19 for ; Thu, 08 Nov 2012 06:07:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=VeBOkCJ3kpG1XbykjTo87o7TeLXnRwDat1oawd4ogms=; b=TubUXgwTyNtb33yeSIZ8GyMgz+ilq/31s+xMAMZnzzvJilPa/3J4aAlnAl4R8aSD1s IPG+syJeWdoNjcNUfRcsv5zHdm5fNHPXl+Iw8bv8knBVmWIb2Y2OsUA/cjMf6X4fBM9i /vL6FXvVHSReNQ2jOB54iXXwR1Nne5VU1eQOaaRSVvkge8wYdXD7sYb5MqTUno0u4yZo /+/ZH7MV/iBW8IkvT61m2W6eFgEjnV+7HCXsoeAd1qNuPFBnMv1IDxCzuejDs4qrGWf1 3saVUGFcHt6u2WJhSd5Ulvy3xVsCsoDDT88LBZq1xRj9fUA4T/ATQhty8R8RoLI+0obB rKRQ== Received: by 10.68.233.196 with SMTP id ty4mr24572137pbc.23.1352383672099; Thu, 08 Nov 2012 06:07:52 -0800 (PST) Received: from [192.168.11.3] ([114.95.126.189]) by mx.google.com with ESMTPS id x8sm16188316paw.16.2012.11.08.06.07.47 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Nov 2012 06:07:51 -0800 (PST) Message-ID: <509BBCB0.7050502@gmail.com> Date: Thu, 08 Nov 2012 22:07:44 +0800 From: Rural Hunter User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: analyze log question on parent/children tables Content-Type: text/plain; charset=GB18030; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201211/49 X-Sequence-Number: 40294 Hi, I'm on 9.1.3. I set auto vacuum off for some tables. I noticed one thing: when I run manual analyze on parent table, It seems the children tables are also analyzed. Here is the analyze log: INFO: analyzing "public.table_parent" INFO: "table_parent": scanned 0 of 0 pages, containing 0 live rows and 0 dead rows; 0 rows in sample, 0 estimated total rows INFO: analyzing "public.table_parent" inheritance tree INFO: "table_child1": scanned 11405 of 692945 pages, containing 105632 live rows and 103 dead rows; 11405 rows in sample, 10739605 estimated total rows INFO: "table_child2": scanned 1858 of 112866 pages, containing 35818 live rows and 0 dead rows; 1858 rows in sample, 2178974 estimated total rows .... But when I check the table status in pgAdmin, I noticed the (auto) analyze time of children tables was not logged. So my question here is: should I run a separate analyze on children tables?