Li Jin <ljin(at)tripadvisor(dot)com> writes:> Anyone knows why the planner is doing this?
WITH is an optimization fence. This is intentional and documented.
regards, tom lane