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 1kE0o8-0007RT-0t for pgsql-docs@arkaria.postgresql.org; Fri, 04 Sep 2020 01:46:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kE0o6-0006FA-Ou for pgsql-docs@arkaria.postgresql.org; Fri, 04 Sep 2020 01:46:26 +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 1kE0o5-0006F3-Sf for pgsql-docs@lists.postgresql.org; Fri, 04 Sep 2020 01:46:25 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kE0nz-00060n-AR for pgsql-docs@lists.postgresql.org; Fri, 04 Sep 2020 01:46:24 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kE0ny-0003IV-IY; Thu, 03 Sep 2020 21:46:18 -0400 Date: Thu, 3 Sep 2020 21:46:18 -0400 From: Bruce Momjian To: guyren@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: Please provide examples of rows from Message-ID: <20200904014618.GB13932@momjian.us> References: <158638264419.662.2482095087061084020@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <158638264419.662.2482095087061084020@wrigleys.postgresql.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Apr 8, 2020 at 09:50:44PM +0000, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/12/queries-table-expressions.html > Description: > > The explanation of ROWS FROM is fairly terse and no examples are given. > > As it is essentially impossible to usefully search for this phrase, it would > be helpful if at least a few examples were given. Looking at this suggestion, this was all I could think of: SELECT * FROM ROWS FROM (GENERATE_SERIES(1,10), GENERATE_SERIES(1, 15)); generate_series | generate_series -----------------+----------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | 8 9 | 9 10 | 10 (null) | 11 (null) | 12 (null) | 13 (null) | 14 (null) | 15 The issue with adding an example is that it is hard to do something simple and have it illustrate anything. Does this help? -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee