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 1iFhMP-0001Ww-RN for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Oct 2019 16:20:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iFhMO-0003OE-LH for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Oct 2019 16:20:16 +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 1iFhMO-0003O3-C8 for pgsql-hackers@lists.postgresql.org; Wed, 02 Oct 2019 16:20:16 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iFhMM-0002C8-6u for pgsql-hackers@lists.postgresql.org; Wed, 02 Oct 2019 16:20:16 +0000 Received: from [192.168.127.1] (port=27678 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iFhMK-0001wJ-CN; Wed, 02 Oct 2019 16:20:12 +0000 Received: from localhost ([127.0.0.1]:20891 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.92.1 (FreeBSD)) (envelope-from ) id 1iFhMJ-0000wO-A2; Wed, 02 Oct 2019 16:20:11 +0000 From: Andrew Gierth To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Possible bug: SQL function parameter in window frame definition In-Reply-To: <6666.1570030371@sss.pgh.pa.us> (Tom Lane's message of "Wed, 02 Oct 2019 11:32:51 -0400") Message-ID: <8736gb2kct.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> <877e5n2n70.fsf@news-spur.riddles.org.uk> <6666.1570030371@sss.pgh.pa.us> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (berkeley-unix) Date: Wed, 02 Oct 2019 17:20:11 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Tom" == Tom Lane writes: Tom> Hm. transformRuleStmt already does special-case utility statements Tom> to some extent, so my inclination would be to make it do more of Tom> that. However, it looks like that might end up with rather Tom> spaghetti-ish code, as that function is kind of messy already. Tom> Or we could abandon the notion of adding the assertion. I don't Tom> know how much work it's worth. Fixing transformRuleStmt just pushes the issue along another step: InsertRule wants to do recordDependencyOnExpr on the rule actions, which just does find_expr_references_walker. I'm going to leave the assertion out for now and put in a comment for future reference. -- Andrew (irc:RhodiumToad)