wrong postgres plan