Postgres error: subplan "SubPlan 2" was not initialized

That is indeed a PostgreSQL bug that was solved in latest minor version. Can you do a rebuild? That will update the PostgreSQL to latest minor.

3 Likes