Clinton Adams <clinton.adams@gmail.com> writes:
> -- Dropping the fkey causes the first query to show a much better row
> estimate, in line with 9.4 and 9.5 plans.
Ah. So this must be something to do with the foreign-key-driven rowcount
estimates we added in 9.6. Will look into it, thanks for the report!
regards, tom lane