Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XeffE-0007Px-DI for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Oct 2014 07:40:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XeffD-00008I-7W for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Oct 2014 07:39:59 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XeffA-00007H-HF for pgsql-hackers@postgresql.org; Thu, 16 Oct 2014 07:39:56 +0000 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xeff1-00039Z-2L for pgsql-hackers@postgresql.org; Thu, 16 Oct 2014 07:39:53 +0000 Received: from mfs5.rdh.ecl.ntt.co.jp (mfs5.rdh.ecl.ntt.co.jp [129.60.39.144]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id s9G7dgph031156; Thu, 16 Oct 2014 16:39:42 +0900 Received: from mfs5.rdh.ecl.ntt.co.jp (localhost.localdomain [127.0.0.1]) by mfs5.rdh.ecl.ntt.co.jp (Postfix) with ESMTP id D2B01E00EE; Thu, 16 Oct 2014 16:39:42 +0900 (JST) Received: from imail3.m.ecl.ntt.co.jp (imail3.m.ecl.ntt.co.jp [129.60.5.248]) by mfs5.rdh.ecl.ntt.co.jp (Postfix) with ESMTP id C7274E00EC; Thu, 16 Oct 2014 16:39:42 +0900 (JST) Received: from [129.60.241.75] ([129.60.241.75]) by imail3.m.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id s9G7dgDX025572; Thu, 16 Oct 2014 16:39:42 +0900 Message-ID: <543F7639.300@lab.ntt.co.jp> Date: Thu, 16 Oct 2014 16:39:37 +0900 From: Etsuro Fujita User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Noah Misch CC: shigeru.hanada@gmail.com, Kyotaro HORIGUCHI , pgsql-hackers@postgresql.org Subject: Re: inherit support for foreign tables References: <53393E18.3080901@lab.ntt.co.jp> <533C01C7.6030809@lab.ntt.co.jp> <53706FB6.6000403@lab.ntt.co.jp> <20140620.170406.123403564.horiguchi.kyotaro@lab.ntt.co.jp> <20140702022327.GC1586927@tornado.leadboat.com> <53F48245.6020204@lab.ntt.co.jp> <20140822025137.GA563733@tornado.leadboat.com> <53FEEF94.6040101@lab.ntt.co.jp> In-Reply-To: <53FEEF94.6040101@lab.ntt.co.jp> Content-Type: multipart/mixed; boundary="------------080504040801000502020508" X-TM-AS-MML: disable X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org This is a multi-part message in MIME format. --------------080504040801000502020508 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit (2014/08/28 18:00), Etsuro Fujita wrote: > (2014/08/22 11:51), Noah Misch wrote: >> Today's ANALYZE VERBOSE messaging for former inheritance parents >> (tables with >> relhassubclass = true but no pg_inherits.inhparent links) is >> deceptive, and I >> welcome a fix to omit the spurious message. As defects go, this is quite >> minor. There's fundamentally no value in collecting inheritance tree >> statistics for such a parent, and no PostgreSQL command will do so. >> A >> credible alternative is to emit a second message indicating that we >> skipped >> the inheritance tree statistics after all, and why we skipped them. > I'd like to address this by emitting the second message as shown below: > A separate patch (analyze.patch) handles the former case in a similar way. I'll add to the upcoming CF, the analyze.patch as an independent item, which emits a second message indicating that we skipped the inheritance tree statistics and why we skipped them. Thanks, Best regards, Etsuro Fujita --------------080504040801000502020508 Content-Type: text/x-patch; name="analyze.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="analyze.patch" *** a/src/backend/commands/analyze.c --- b/src/backend/commands/analyze.c *************** *** 1478,1483 **** acquire_inherited_sample_rows(Relation onerel, int elevel, --- 1478,1487 ---- /* CCI because we already updated the pg_class row in this command */ CommandCounterIncrement(); SetRelationHasSubclass(RelationGetRelid(onerel), false); + ereport(elevel, + (errmsg("skipping analyze of \"%s.%s\" inheritance tree --- this inheritance tree contains no child tables", + get_namespace_name(RelationGetNamespace(onerel)), + RelationGetRelationName(onerel)))); return 0; } --------------080504040801000502020508 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers --------------080504040801000502020508--