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 1kNgJO-0002Wi-Lv for pgsql-docs@arkaria.postgresql.org; Wed, 30 Sep 2020 17:54:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kNgJM-0006EC-UG for pgsql-docs@arkaria.postgresql.org; Wed, 30 Sep 2020 17:54:40 +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 1kNgJM-0006E5-P0 for pgsql-docs@lists.postgresql.org; Wed, 30 Sep 2020 17:54:40 +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 1kNgJG-0004VI-CX for pgsql-docs@lists.postgresql.org; Wed, 30 Sep 2020 17:54:39 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kNgJE-0000N9-2l; Wed, 30 Sep 2020 13:54:32 -0400 Date: Wed, 30 Sep 2020 13:54:32 -0400 From: Bruce Momjian To: "David G. Johnston" Cc: Tom Lane , Guyren Howe , Pg Docs Subject: Re: Please provide examples of rows from Message-ID: <20200930175432.GB26841@momjian.us> References: <20200920003910.GA22746@momjian.us> <798909.1600562993@sss.pgh.pa.us> <20200920013846.GC22746@momjian.us> <835988.1600613834@sss.pgh.pa.us> <878265.1600625640@sss.pgh.pa.us> <20200924185511.GC22807@momjian.us> <1668963.1600974324@sss.pgh.pa.us> <20200924193714.GD22807@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 Tue, Sep 29, 2020 at 08:53:51PM -0700, David G. Johnston wrote: > On Thu, Sep 24, 2020 at 12:37 PM Bruce Momjian wrote: > > On Thu, Sep 24, 2020 at 03:05:24PM -0400, Tom Lane wrote: > > Bruce Momjian writes: > > > Yes, this is very helpful.  I was afraid the JSON would overwhelm the > > > example, but this looks good.  I wrote the attached doc patch which I > > > think improves this.  I plan to apply it to all supported versions. > > > > Couple thoughts: > > > > * Taking the initial ... out of the syntax synopsis is not an > improvement. > > It makes it look like you can only apply AS to the first function of a > > ROWS FROM. > > Oh, so the dots represent optional non-column_definition function calls. > I can't think if a cleaner way to show that, so I guess "..." will have > to do. > > > My original comment was a question predicated upon the fact that the SELECT > reference page doesn't include the leading; probably should add them there as > part of this patch. I looked at that but in the SELECT manual page case, the example is already part of a larger list of options so I don't think it is needed. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee