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 1xESsA-000000017F5-2QK8 for pgsql-docs@arkaria.postgresql.org; Wed, 07 Oct 2026 14:43:58 +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 1xESs9-000000074u7-1IZf for pgsql-docs@arkaria.postgresql.org; Wed, 07 Oct 2026 14:43:57 +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 1xESs9-000000074tz-0CDT for pgsql-docs@lists.postgresql.org; Wed, 07 Oct 2026 14:43:57 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1xESs6-00000000tyB-2j9y for pgsql-docs@lists.postgresql.org; Wed, 07 Oct 2026 14:43:56 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4a140e7405dso40767285e9.3 for ; Wed, 07 Oct 2026 07:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1791384234; x=1791989034; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to:content-type; bh=S1LSBJFN6pcM2SrOH+kI1I58+dGxBw/p6qtYUbETrUE=; b=qzQTuJ3bultNpBwWlIZPlx7kWQnTLBkdFgUd0E1/CmmrrTELMa89HJN6+vgswuUnu6 SCC6fF7Ku/pGa0Rbt0eow9zk7OZfFajzus8hg4rHI7czcnRjFEW+SqNtzbrlJTx5/xDg Dmv/8rZFOQm0owiGHaj3NMHgvUtkMWwyAOi1rIY4k6hsxrQBxJbLVrWnAq7OgtCIIZl3 F0RQRmv1MzhepBmn3TED1X9m2XzMyBLl0F2T702WyC92yMmBZQMzAjNMkE7EAm5B196v 5MCKCjpCEs2jx/c8Eh0SPfOjYVzDZTH6fgt3P1G0D0jUjnybffQrtH8ru6ZsQdtfdevS v0AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791384234; x=1791989034; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=S1LSBJFN6pcM2SrOH+kI1I58+dGxBw/p6qtYUbETrUE=; b=FF+LoQyO0zaG+qjIMIfks3ciIsrFq3ZEqtz1/9ELfoxROBpmVvOQcOCjdEJrdDLYj1 MYO3T0USh9H/Anj0RcwynVsBh0y1qC6r124z3Ya1yG/NVB3//6cP2rcOSPY3E5kBT9Xz V+csUK/MFmzl6eBV0SU/b/Q8uuINtr8kYmTiTf3Ubwwc2/zOO17aJse3CoKn9dCxvhiw XrEQRr2KUtFxoqdZez5bYL+UpDJwgb25PgrGAu+X+4s+5eRmXclD+NFoOGkCgD2AyAnz 6/JFtNER6vtss7GXdIJnXSEm/Bk4dqtqCMj70VdJeUdy0vBYZmIFd/V0+/NKN4Cr0QSq x7Xw== X-Gm-Message-State: AFuF++mDvTNo9Xf5LQvFSzQf1MDen5K3O8yX/zZtdnH/zb2TKpZ7MO0G Mp6z3pYtpoiswRayy9YnK3UWp7dnmEjOIMrOAGcwjn6iB8NWHTOxDqoMTEEQVYrECbYqmYpL1YN KJfVi X-Gm-Gg: AYBFou3xTXNbglTByrGeq/Nqmq7qr/T7HeZbyHKJKmG/shi37xQhN0DY+MwYdlX4Nc5 hh36ujAOEIvlXIBS4tjKpeUZCYto1J1pyESZdIyWUu/l+2dCZHSJEvh+Dv26VwSEoUyyoIDbQc8 FOWbZuxmfIkDAku3LVMmVlUF5z629Id8o1lq60O+owAYpzG5JzC1kFXSIZT1O3xzr6h/eKeuu4l TZfCTnWCtc7Lu8CgCalrQA9eFOubFjc/Lqdkqkvk7lEwjV7T3IexWn0k3UBXxe9nhunQA+zq8Wl IoyJkmfbvtYb3Ej+avQnBAjZGi6dAyAehYvdfYCbSLamgyC4cEaQz6viiKuMLTo8MvyPeXpX4GV XktjVjUOK9yTYKD64BzOqnZZUdUi6hGiJv/DBycD2h7Cj2C6bxphkRYbjHqLK/i10YkPJg/WmYO +q0DJt30KI++YYZ+a53+IoY6doAeSBQFLQqpvFRdi2wzN7gP9bHBBxGAN6VHhF+oN3K005z0+Oe VnCqGTbPJ4tlQKGBsMydk8UWP8I X-Received: by 2002:a05:600c:4687:b0:4a1:688d:a41c with SMTP id 5b1f17b1804b1-4a18065e235mr41784715e9.25.1791384233904; Wed, 07 Oct 2026 07:43:53 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:70:8908:76b2:26ac:3777:7531]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a17f54a5cesm67766865e9.5.2026.10.07.07.43.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2026 07:43:53 -0700 (PDT) Message-ID: <344e5b7d87a8c0e8e8f5f4924345b1caec1a4418.camel@cybertec.at> Subject: Re: Improve "3.6. Inheritance" tutorial From: Laurenz Albe To: =?ISO-8859-1?Q?Matem=E1tica?= A3K Cc: pgsql-docs@lists.postgresql.org Date: Wed, 07 Oct 2026 16:43:52 +0200 In-Reply-To: References: <179088091522.1026193.3570337969572056877@wrigleys.postgresql.org> <3c6bdd69af16e90e3da20be277e836b25eeee1a5.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.60.2 (3.60.2-2.fc44) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2026-10-02 at 12:23 -0300, Matem=C3=A1tica A3K wrote: > On Fri, Oct 2, 2026 at 3:58=E2=80=AFAM Laurenz Albe wrote: > > On Thu, 2026-10-01 at 18:55 +0000, PG Doc comments form wrote: > > > Page: https://www.postgresql.org/docs/18/tutorial-inheritance.html > > >=20 > > > I propose the following modifications: [...] > >=20 > > Do I get you right that you don't have any problems with the > > technical content, but are unhappy about the style? >=20 > No, I'm unhappy with both, my suggestions go=C2=A0in both directions. I must say that I perfer the original style. But let's discuss the technical content: > The main technical concern is that querying is not explained on it, it's > explained on the "details page". > > More in concrete, if you add "In PostgreSQL, a table can inherit from zer= o > or more other tables, and a=C2=A0query can reference either all rows of a= table > or all rows of a table plus=C2=A0all of its descendant tables. The latter= behavior > is the default." should be a "complete" explanation of the feature. I think the explanation in the tutorial is quite clear: Here the ONLY before cities indicates that the query should be run over only the cities table, and not tables below cities in the inheritance hierarchy. Many of the commands that we have already discussed =E2=80=94 = SELECT, UPDATE, and DELETE =E2=80=94 support this ONLY notation. A tutorial is not supposed to provide a rigorous definition. Such a definition should be in the reference manual. And indeed I find in https://www.postgresql.org/docs/18/sql-select.html If ONLY is specified before the table name, only that table is scanned. If ONLY is not specified, the table and all its descendant tables (if any) are scanned. I'm happy with the page the way it is... Yours, Laurenz Albe