I wrote:> So this logic in relation_excluded_by_constraints is just wrong ---> premature optimization on my part, looks like.
Pushed after a bit of fiddling with the comment.
regards, tom lane