Re: [HACKERS] Partitioned tables and relfilenode

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [HACKERS] Partitioned tables and relfilenode
Дата
Msg-id CA+TgmoZGtbdJxH947dYC4uQ+PajigN_UCntH0XnXrjtTytA5OQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Partitioned tables and relfilenode  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
On Wed, Feb 15, 2017 at 2:14 AM, Michael Paquier
<michael.paquier@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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] CONNECTION LIMIT and Parallel Query don't play welltogether