Postgresql – Postgres: "cumulative" view of table
I have a table of changes like this CREATE TABLE IF NOT EXISTS changes ( entity_id TEXT NOT NULL, column_id TEXT NOT NULL, value JSONB NOT NULL, updated_at TIMESTAMP NOT NULL ); INSERT INTO changes VALUES ('1', 'height', to_jsonb(140), '01-01-2021…