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 1oOOrf-0000T8-KV for pgsql-docs@arkaria.postgresql.org; Wed, 17 Aug 2022 19:38:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oOOk6-0002Ar-9E for pgsql-docs@arkaria.postgresql.org; Wed, 17 Aug 2022 19:30:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOOk6-0002Ah-1e for pgsql-docs@lists.postgresql.org; Wed, 17 Aug 2022 19:30:18 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOOk4-0000dP-Gz for pgsql-docs@postgresql.org; Wed, 17 Aug 2022 19:30:17 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1oOOjz-001aRk-ST; Wed, 17 Aug 2022 15:30:11 -0400 Date: Wed, 17 Aug 2022 15:30:11 -0400 From: Bruce Momjian To: PostgreSQL-documentation Cc: Tomas Vondra Subject: CREATE STATISTICS and partitoins/inheritance Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="crgMYHgYpEadBbyT" Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --crgMYHgYpEadBbyT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In looking at CREATE STATISTICS, I was confused how inheritance and partisions were handled, so I confirmed with Tomas that the ANALYZE manual page accurately describes how extended statistics are handled since PG 15, so I plan to apply this patch to the CREATE STATISTICS docs. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Indecision is a decision. Inaction is an action. Mark Batterson --crgMYHgYpEadBbyT Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="parent.diff" diff --git a/doc/src/sgml/ref/create_statistics.sgml b/doc/src/sgml/ref/create_statistics.sgml index b847944f37..2a9a0bf932 100644 --- a/doc/src/sgml/ref/create_statistics.sgml +++ b/doc/src/sgml/ref/create_statistics.sgml @@ -146,7 +146,9 @@ CREATE STATISTICS [ [ IF NOT EXISTS ] statistics_ The name (optionally schema-qualified) of the table containing the - column(s) the statistics are computed on. + column(s) the statistics are computed on; see for an explanation of the handling of + inheritance and partitions. --crgMYHgYpEadBbyT--