来源:https://stackoverflow.com/questions/60024643/sql-calculate-exponential-moving-average-with-ctes-or-aggregates 标签 sql postgresql recursion weighted-average