Amit Langote <amitlangot...@gmail.com> writes: > On Tue, Apr 30, 2019 at 1:26 PM Amit Langote <amitlangot...@gmail.com> wrote: >> It would be nice if at least we fix the bug that directly accessed >> partitions are not excluded with constraint_exclusion = on, without >> removing PG 11's contortions in relation_excluded_by_constraints to >> work around the odd requirements imposed by inheritance_planner, which >> is causing the additional diffs in the regression expected output.
> FWIW, attached is a delta patch that applies on top of your patch for > v11 branch that shows what may be one way to go about this. OK, I tweaked that a bit and pushed both versions. regards, tom lane