Postgresql – Retaining and inserting state into a postgres aggregation function
I have a case where I have a table "tab" that stores data (keyed by symbol and time) as well as a second table "summ" that stores the exponential weighted running average of the data in the first table. I…