While looking at the docs in [1], I saw that we still mention:
4. Ensure that the constraint_exclusion configuration parameter is not
disabled in postgresql.conf. If it is, queries will not be optimized
as desired.
This is no longer true. The attached patch removed it.
[1] https://www.postgresql.org/docs/10/static/ddl-partitioning.html
--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services