Working Around a Case Where the Postgres Planner Is “Not Very Smart” – Heap