I have a table in postgres with categories and values. I want to perform an aggregation, e.g. avg(value) per category but including the first row of the next category in the