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 1iF2Ey-00070I-Vy for pgsql-general@arkaria.postgresql.org; Mon, 30 Sep 2019 20:25:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iF2Ev-0005sq-J8 for pgsql-general@arkaria.postgresql.org; Mon, 30 Sep 2019 20:25:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iF2Ev-0005si-9S for pgsql-general@lists.postgresql.org; Mon, 30 Sep 2019 20:25:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iF2Et-0001tn-0o for pgsql-general@lists.postgresql.org; Mon, 30 Sep 2019 20:25:48 +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 x8UKPald006833; Mon, 30 Sep 2019 16:25:38 -0400 From: Tom Lane To: Andrew Gierth cc: Alastair McKinley , "pgsql-general\@lists.postgresql.org" Subject: Re: Possible bug: SQL function parameter in window frame definition In-reply-to: <87a7ammkaj.fsf@news-spur.riddles.org.uk> References: <87tv8wmn1i.fsf@news-spur.riddles.org.uk> <32758.1569703063@sss.pgh.pa.us> <87mueom8km.fsf@news-spur.riddles.org.uk> <26051.1569712242@sss.pgh.pa.us> <87impbn2d4.fsf@news-spur.riddles.org.uk> <87eezzmls2.fsf@news-spur.riddles.org.uk> <28299.1569780931@sss.pgh.pa.us> <87a7ammkaj.fsf@news-spur.riddles.org.uk> Comments: In-reply-to Andrew Gierth message dated "Mon, 30 Sep 2019 06:37:48 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6830.1569875136.1@sss.pgh.pa.us> Date: Mon, 30 Sep 2019 16:25:36 -0400 Message-ID: <6831.1569875136@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Gierth writes: > "Tom" == Tom Lane writes: > Tom> Hmm. I think this is a reasonable direction to go in, but > Tom> what about groupingSets and rowMarks? > groupingSets ultimately contains nothing but numbers which are > meaningless without reference to the matching groupClause list. So > anything that cares about those is really going to have to process them > in its Query case in the walker function in order to get at both > clauses. Ah. I was thinking there were SortGroupClauses under them, but that was based on an overly hasty reading of the parsenodes.h comments. No further complaints. regards, tom lane