Working around a case where the Postgres planner is “not very smart” · HackerTrans