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 1oSJY5-00010h-NE for pgsql-docs@arkaria.postgresql.org; Sun, 28 Aug 2022 14:46:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oSJY1-0002ra-U4 for pgsql-docs@arkaria.postgresql.org; Sun, 28 Aug 2022 14:46:01 +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 1oSJY1-0002rJ-Mi for pgsql-docs@lists.postgresql.org; Sun, 28 Aug 2022 14:46:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oSJXz-00059U-Jq for pgsql-docs@lists.postgresql.org; Sun, 28 Aug 2022 14:46:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 27SEjnbN2668914; Sun, 28 Aug 2022 10:45:49 -0400 From: Tom Lane To: Simon Riggs cc: jason@banfelder.net, pgsql-docs@lists.postgresql.org Subject: Re: Handling of quantity in recursive query example In-reply-to: References: <166161184718.1235920.6304070286124217754@wrigleys.postgresql.org> Comments: In-reply-to Simon Riggs message dated "Sun, 28 Aug 2022 12:43:22 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2668912.1661697949.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 28 Aug 2022 10:45:49 -0400 Message-ID: <2668913.1661697949@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Simon Riggs writes: > On Sat, 27 Aug 2022 at 18:04, PG Doc comments form > wrote: >> As currently written, if a car has four wheels, and each wheel has five >> bolts, the whole example returns five bolts for the parts of a car. Wit= h the >> proposed change, it will return 20 bolts. > I agree, based on the attached test. > ... > Doc patch attached. Pushed, thanks. regards, tom lane