On Wed, Feb 15, 2017 at 2:14 AM, Michael Paquier <michael.paqu...@gmail.com> wrote: > This is a collection of checks on relkind == RELKIND_PARTITIONED_TABLE > to avoid interactions with partition tables. Did you consider doing > something in the executor instead?
That seems inferior, because the planner really ought to know that the partitioning root doesn't need to be scanned. That way, it can do a better job getting the cost and selectivity estimates right. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (email@example.com) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers