Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fYSoC-0004z7-PC for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Jun 2018 09:01:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fYSoA-0000Rk-E3 for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Jun 2018 09:01:42 +0000 Received: from makus.postgresql.org ([174.143.35.229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fYSoA-0000R5-1f for pgsql-hackers@lists.postgresql.org; Thu, 28 Jun 2018 09:01:42 +0000 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fYSlx-0007i4-V2 for pgsql-hackers@postgresql.org; Thu, 28 Jun 2018 08:59:27 +0000 Received: from vc2.ecl.ntt.co.jp (vc2.ecl.ntt.co.jp [129.60.86.154]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id w5S8xMI0004450; Thu, 28 Jun 2018 17:59:22 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 2D60E63934D; Thu, 28 Jun 2018 17:59:22 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 224FF639340; Thu, 28 Jun 2018 17:59:22 +0900 (JST) Received: from [127.0.0.1] (unknown [129.60.241.61]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id 13C7D4001A0; Thu, 28 Jun 2018 17:59:22 +0900 (JST) Subject: Re: partition tree inspection functions References: <8d00e51a-9a51-ad02-d53e-ba6bf50b2e52@lab.ntt.co.jp> From: Amit Langote Message-ID: Date: Thu, 28 Jun 2018 17:59:11 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CC-Mail-RelayStamp: 1 To: Peter Eisentraut , Pg Hackers X-TM-AS-MML: disable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018/06/28 17:40, Peter Eisentraut wrote: > On 6/26/18 07:08, Amit Langote wrote: >> As discussed a little while back [1] and also recently mentioned [2], here >> is a patch that adds a set of functions to inspect the details of a >> partition tree. There are three functions: >> >> pg_partition_parent(regclass) returns regclass >> pg_partition_root_parent(regclass) returns regclass >> pg_partition_tree_tables(regclass) returns setof regclass > > Does this add anything over writing a recursive query on pg_inherits? As far as the information output is concerned, it doesn't. Thanks, Amit