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 1kLWLz-000406-FP for pgsql-docs@arkaria.postgresql.org; Thu, 24 Sep 2020 18:52:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kLWLy-0003nN-Cl for pgsql-docs@arkaria.postgresql.org; Thu, 24 Sep 2020 18:52: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 1kLWLy-0003nG-7H for pgsql-docs@lists.postgresql.org; Thu, 24 Sep 2020 18:52:26 +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 1kLWLs-0000Bl-0h for pgsql-docs@lists.postgresql.org; Thu, 24 Sep 2020 18:52:25 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kLWLr-0007zi-1F; Thu, 24 Sep 2020 14:52:19 -0400 Date: Thu, 24 Sep 2020 14:52:19 -0400 From: Bruce Momjian To: "David G. Johnston" Cc: Guyren Howe , Pg Docs Subject: Re: Please provide examples of rows from Message-ID: <20200924185219.GA27774@momjian.us> References: <158638264419.662.2482095087061084020@wrigleys.postgresql.org> <20200904014618.GB13932@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Sep 14, 2020 at 06:49:22PM -0700, David G. Johnston wrote: > On Thu, Sep 3, 2020 at 6:46 PM Bruce Momjian wrote: > The issue with adding an example is that it is hard to do something > simple and have it illustrate anything.  Does this help? > > That documents one of the two variants - and incorporating the column alias > feature seems worthwhile for the chosen example.  I do think this is worth > adding. > > The more complicated one is the second: > > ROWS FROM( ... function_call AS (column_definition [, ... ]) [, ... ] ) > > First, what's with the first set of "..."?  It doesn't appear in the reference > documentation. I have removed these dots in a patch I just posted to this thread. > I was looking at the "Queries" doc comment a little bit ago and am wondering if > there is some principle by which we would decide to place any new examples in > this section versus the examples part of the SELECT reference section? Agreed. Let me know if my patch needs more information. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee