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 1iEdjT-0004xy-Rj for pgsql-general@arkaria.postgresql.org; Sun, 29 Sep 2019 18:15:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iEdjR-00084x-Kz for pgsql-general@arkaria.postgresql.org; Sun, 29 Sep 2019 18:15:41 +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 1iEdjR-00081v-9w for pgsql-general@lists.postgresql.org; Sun, 29 Sep 2019 18:15:41 +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 1iEdjO-0003KU-RX for pgsql-general@lists.postgresql.org; Sun, 29 Sep 2019 18:15:40 +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 x8TIFWWA028300; Sun, 29 Sep 2019 14:15:32 -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: <87eezzmls2.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> Comments: In-reply-to Andrew Gierth message dated "Sun, 29 Sep 2019 11:46:49 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28298.1569780931.1@sss.pgh.pa.us> Date: Sun, 29 Sep 2019 14:15:31 -0400 Message-ID: <28299.1569780931@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Gierth writes: > "Andrew" == Andrew Gierth writes: > Andrew> We could minimize the chance of breakage in a back-patched fix > Andrew> by having query_tree_walker/mutator iterate the windowClause > Andrew> list itself > Here is a draft patch along those lines; the intent of this one is that > no existing walker or mutator should need to change (the change to the > dependency code is basically cosmetic I believe, just avoids walking > some things twice). Hmm. I think this is a reasonable direction to go in, but what about groupingSets and rowMarks? Also, in HEAD I'd be inclined to add assertions about utilityStmt being NULL. regards, tom lane