Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ipK17-000333-Py for pgsql-docs@arkaria.postgresql.org; Wed, 08 Jan 2020 22:41:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ipK16-0002NN-8I for pgsql-docs@arkaria.postgresql.org; Wed, 08 Jan 2020 22:41:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ipK15-0002K6-T0 for pgsql-docs@lists.postgresql.org; Wed, 08 Jan 2020 22:41:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ipK0z-00082m-Dc for pgsql-docs@lists.postgresql.org; Wed, 08 Jan 2020 22:41:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 008MfJX1001929; Wed, 8 Jan 2020 17:41:19 -0500 From: Tom Lane To: michael.brook@gfk.com cc: pgsql-docs@lists.postgresql.org Subject: Re: Multiple window definitions In-reply-to: <157850760435.29169.8859142545895630889@wrigleys.postgresql.org> References: <157850760435.29169.8859142545895630889@wrigleys.postgresql.org> Comments: In-reply-to PG Doc comments form message dated "Wed, 08 Jan 2020 18:20:04 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1927.1578523279.1@sss.pgh.pa.us> Date: Wed, 08 Jan 2020 17:41:19 -0500 Message-ID: <1928.1578523279@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Doc comments form writes: > According to the spec: > [ WINDOW window_name AS ( window_definition ) [, ...] ] > So the ... means I can have more than one named window. But I can't make > this work on 11.5. It's supposed to be WINDOW w1 AS (...), w2 AS (...), ... ie don't repeat the WINDOW keyword. If that wasn't the issue, you need to show more specifically what you tried. I agree that the syntax definition isn't terribly precise, but people don't seem to have trouble with the very comparable rules for, say, FROM or GROUP BY. regards, tom lane