I used a recursive aggregate query in 3.8.9 and it worked very well. Just upgraded to 3.11.1 and the query is broken.
This seems to be directly related to Check-in [6d2999af]: Do not allow recursive CTEs that use aggregate queries in the recursive part. It worked, and now it is disabled. Why ? -- Aurel Wisse