We are trying to use ARRAY_AGG as a pattern for MATERIALIZED views to get the \'latest\' product event for a given productId.
The SQL below is a standard pattern (wel