Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6qtl-000442-04 for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Jun 2022 09:55:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o6qtj-0007gz-S6 for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Jun 2022 09:55:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6qtj-0007gq-AN for pgsql-hackers@lists.postgresql.org; Thu, 30 Jun 2022 09:55:43 +0000 Received: from mail-qv1-xf2b.google.com ([2607:f8b0:4864:20::f2b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o6qtf-00088a-Qd for pgsql-hackers@lists.postgresql.org; Thu, 30 Jun 2022 09:55:42 +0000 Received: by mail-qv1-xf2b.google.com with SMTP id y14so28856319qvs.10 for ; Thu, 30 Jun 2022 02:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=EAGk8nhX0iusFtUtbqOK0SaWhF42cYmy2qWMUsUbzII=; b=U3ivNTKx5vpuG7drOA/dYRD89OUsj804yL2cTggVyctYOIV3P10yVtK28mu8yqZxRq JIlE6FnTsXSJ22uc9m/p08YonyTi2MhYEKeqU8ILtFkyIO4hnkQPc/+ntHABc2toRDqU SGFwb+sKrX8Iz1hiuZKQ6l2A0koXr2tTYXkGxCA9s1BvYl68JdTa0SKPYOQ0tt+Qqu+E PXFMW8z4uPTylJJZJgEjnNkwW0na2WW5PbytfhORyd8wel+Lx79al9WgebDLuKWjpfA3 7RVvvcVBayQX0xgw0zwBPJC4IEzIApkxx54tLmcw8ikVnJaU5JqHrZEoN84ndLEZBxj+ WsYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=EAGk8nhX0iusFtUtbqOK0SaWhF42cYmy2qWMUsUbzII=; b=7bVcyOtGHlXGkW2T13u+oMl0hcKW9hKbI/+z7DbCE13sr2WxcltDm9clxb8qcQMSdd SCX3uY9a7ufd7o9GYZeG5GmJabH6p1647RAJBFnsHnYWa5e3SYr/K3Pf1meBkoPveH/3 kq683QyyKAb9Lt9OOupbEOekg7Z6zlkvTirPaO+TpN3DPVJ+3kf298M5S1naBEljAKrm ZuBF5fMYvjTzH+VgsBBzXzeRfqGtmg1xkyKZOYJyD/hOzJaGWKkosvs2Ab/C94R01UII sTVbM/dIFK5ZWJPOnYMVz4cTvzSSbaNTVbzC/IuZvsaAtfxdPAS1L8NPUjmvyF/p8Y/X ZjNQ== X-Gm-Message-State: AJIora9msBQuoLSNNStElH8bCDq0NRSWEXQ7K5K67gbq1i89sQokIU7g cyL4qznUD3XseT3PiM7Mg3sfmw== X-Google-Smtp-Source: AGRyM1tBTbXQJbuNnxOYnELnz1CgABZ3j6DZUMf6bE6M5FKi1IuFqFhLvySQzQUOVsAQd5fr/aO9CA== X-Received: by 2002:ad4:5f4a:0:b0:470:29cb:ad40 with SMTP id p10-20020ad45f4a000000b0047029cbad40mr10303857qvg.87.1656582938672; Thu, 30 Jun 2022 02:55:38 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id gb6-20020a05622a598600b00318f4188a36sm9453525qtb.86.2022.06.30.02.55.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jun 2022 02:55:38 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id BF5DD803A0D; Thu, 30 Jun 2022 04:55:36 -0500 (CDT) Date: Thu, 30 Jun 2022 04:55:36 -0500 From: Justin Pryzby To: Amit Langote Cc: Ashutosh Bapat , Alvaro Herrera , Amit Langote , David Rowley , Peter Eisentraut , pgsql-hackers@lists.postgresql.org, "Shinoda, Noriyoshi (PN Japan FSIP)" , Tomas Vondra Subject: Re: doc phrase: "inheritance child" Message-ID: <20220630095536.GT28130@telsasoft.com> References: <20220525013248.GO19626@telsasoft.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, May 27, 2022 at 03:22:38PM +0900, Amit Langote wrote: > On Wed, May 25, 2022 at 1:30 PM Ashutosh Bapat wrote: > > > > - If true, the stats include inheritance child columns, not just the > > + If true, the stats include child tables, not just the > > > > We are replacing columns with tables; is that intentional? > > > > Partitioned tables do not have their own stats, it's just aggregated partition stats. > > ... > > - If true, the stats include inheritance child columns, not just the > > + If true, the stats include child childs, not just the > > values in the specified relation > > > > > > @@ -13152,7 +13152,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx > > inherited bool > > > > > > - If true, this row includes inheritance child columns, not just the > > + If true, this row includes child tables, not just the > > values in the specified table > > > > > > > > Replacing inheritance child "column" with "tables", is that intentional? > > I was a bit confused by these too, though perhaps the original text is > not as clear as it could be? Would the following be a good rewrite: I updated the language to say "values from". Is this better ? And rebased to include changes to 401f623c7. BTW nobody complained about my "child child" typo. -- Justin --lrZ03NoBR/3+SXJZ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-doc-avoid-saying-inheritence-when-it-applies-to-part.patch" From ee0b60ba9c5d08aff49600866d7e8439d836579a Mon Sep 17 00:00:00 2001 From: Justin Pryzby Date: Mon, 25 Apr 2022 14:59:12 -0500 Subject: [PATCH] doc: avoid saying "inheritence" when it applies to partitioned rels This is almost the opposite of 0c06534bd, which removed references to "partition" in favour of "child". --- doc/src/sgml/catalogs.sgml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index 2e46ed7cc57..851ff959021 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -2140,7 +2140,7 @@ SCRAM-SHA-256$<iteration count>:&l relhassubclass bool - True if table or index has (or once had) any inheritance children + True if table or index has (or once had) any inheritance children or partitions @@ -7311,7 +7311,7 @@ SCRAM-SHA-256$<iteration count>:&l Normally there is one entry, with stainherit = false, for each table column that has been analyzed. - If the table has inheritance children, a second entry with + If the table has inheritance children or partitions, a second entry with stainherit = true is also created. This row represents the column's statistics over the inheritance tree, i.e., statistics for the data you'd see with @@ -7394,7 +7394,7 @@ SCRAM-SHA-256$<iteration count>:&l stainherit bool - If true, the stats include inheritance child columns, not just the + If true, the stats include values from child tables, not just the values in the specified relation @@ -7666,7 +7666,7 @@ SCRAM-SHA-256$<iteration count>:&l Normally there is one entry, with stxdinherit = false, for each statistics object that has been analyzed. - If the table has inheritance children, a second entry with + If the table has inheritance children or partitions, a second entry with stxdinherit = true is also created. This row represents the statistics object over the inheritance tree, i.e., statistics for the data you'd see with @@ -7720,7 +7720,7 @@ SCRAM-SHA-256$<iteration count>:&l stxdinherit bool - If true, the stats include inheritance child columns, not just the + If true, the stats include values from child tables, not just the values in the specified relation @@ -13157,7 +13157,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx inherited bool - If true, this row includes inheritance child columns, not just the + If true, this row includes values from child tables, not just the values in the specified table @@ -13419,7 +13419,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx (references pg_statistic_ext_data.stxdinherit) - If true, the stats include inheritance child columns, not just the + If true, the stats include values from child tables, not just the values in the specified relation @@ -13611,7 +13611,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx (references pg_statistic_ext_data.stxdinherit) - If true, the stats include inheritance child columns, not just the + If true, the stats include values from child tables, not just the values in the specified relation -- 2.17.1 --lrZ03NoBR/3+SXJZ--