Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xCWO0-00000003qAk-2Gbn for pgsql-docs@arkaria.postgresql.org; Fri, 02 Oct 2026 06:04:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xCWNy-0000000AZrp-2Ice for pgsql-docs@arkaria.postgresql.org; Fri, 02 Oct 2026 06:04:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xCLx0-00000008Vmu-3UKz for pgsql-docs@lists.postgresql.org; Thu, 01 Oct 2026 18:56:14 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xCLwx-00000002Jnk-1k8J for pgsql-docs@lists.postgresql.org; Thu, 01 Oct 2026 18:56:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Message-ID:Date:Reply-To:Cc:From:To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:Sender:Content-ID: Content-Description:In-Reply-To:References; bh=oqCjEcy3hrGXftnMOXWLhRMnFk68yOXOGFf8aeRJUws=; b=aGo+D/klSOfHUUEpCCahZ433pe 3JYxbsGKKN7ncVfvZQ75rFBHjflaYqow2c2Ki8wXE7GGqODkqvO2enaXbVD1ghrKo3G0EkoJa232D ukRP25QZZcXAM24NYzUNblpXfwfGAyzEdbl31ARrkoMYEFTDzG26HrNOZbo/JMruvdYX7C/bVgKA6 QaKBIX71SPP83F2VHVNhwlqHxYEIs1ux6H0djOCvSa4PuBW/3NbjQLiWlLFudIeFjFUBp5q0pe2hD nexF22826pTlx2rEqbLKJshWneO9EKNAAp9AY880tLKS1fFyIFFCZ2k89fCdZcAqzhMvzsrVUaUiY pThXaJGg==; Received: from wrigleys.postgresql.org ([2a02:16a8:dc51::60]) by mahout.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1xCLwv-001XL2-2m for pgsql-docs@lists.postgresql.org; Thu, 01 Oct 2026 18:56:09 +0000 Received: from localhost ([127.0.0.1] helo=wrigleys.postgresql.org) by wrigleys.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xCLwp-00000001V5Q-1ERb for pgsql-docs@lists.postgresql.org; Thu, 01 Oct 2026 18:56:03 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Improve "3.6. Inheritance" tutorial To: pgsql-docs@lists.postgresql.org From: PG Doc comments form Cc: matematica.a3k@gmail.com Reply-To: matematica.a3k@gmail.com, pgsql-docs@lists.postgresql.org Date: Thu, 01 Oct 2026 18:55:15 +0000 Message-ID: <179088091522.1026193.3570337969572056877@wrigleys.postgresql.org> X-Auto-Response-Suppress: All Auto-Submitted: auto-generated List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/18/tutorial-inheritance.html Description: I propose the following modifications: - "... cities. If you're really clever you might invent some scheme like this:" I think it's a joke which didn't age well, "Suppose you invent..." should be better. - "This works OK as far as querying goes, but it gets ugly when you need to update several rows, for one thing. A better solution is this:" "In this sense, a better solution is:" should be better. - "In this case, a row of capitals inherits all columns (name, population, and elevation) from its parent, cities. The type of the column name is text, a native PostgreSQL type for variable length character strings. The capitals table has an additional column, state, which shows its state abbreviation. In PostgreSQL, a table can inherit from zero or more other tables." This may be refactored into: "In this case, a row of capitals inherits all columns (name, population, and elevation) from its parent, cities. The capitals table has an additional column, state, which shows its state abbreviation. In PostgreSQL, a table can inherit from zero or more other tables, and a query can reference either all rows of a table or all rows of a table plus all of its descendant tables. The latter behavior is the default." - "which returns:" "Given the sample data from the PostgreSQL tutorial (see Section 2.1), this returns::" should be clearer - "Note Although inheritance is frequently useful, it has not been integrated with unique constraints or foreign keys, which limits its usefulness. See Section 5.11 for more detail." "Inheritance has not been integrated with unique constraints or foreign keys, which limits its usefulness. See Section 5.11 for a complete description of the feature." should be more precise Regards, Rodrigo