Re: Possible bug: SQL function parameter in window frame definition
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2019-10-02T16:56:29Z
Lists: pgsql-hackers, pgsql-general
Andrew Gierth <andrew@tao11.riddles.org.uk> writes: > OK. So here's the final patch. > (For the benefit of anyone in -hackers not following the original thread > in -general, the problem here is that expressions in window framing > clauses were not being walked or mutated by query_tree_walker / > query_tree_mutator. This has been wrong ever since 9.0, but somehow > nobody seems to have noticed until now.) Two nitpicky suggestions: * Please run it through pgindent. Otherwise v13+ are going to be randomly different from older branches in this area, once we next pgindent HEAD. * I think you missed s/walk/mutate/ in some of the comments you copied into query_tree_mutator. Looks good otherwise. regards, tom lane
Commits
-
Selectively include window frames in expression walks/mutates.
- 3473f81dd2a3 9.4.25 landed
- d2427f11b28d 9.5.20 landed
- 6db0d7f35917 9.6.16 landed
- ede0ab6ccce4 10.11 landed
- 0a445f27909a 11.6 landed
- 0b11dc01922b 12.1 landed
- b7a1c5539ad3 13.0 landed