Re: Indexes on partitioned tables and foreign partitions

Поиск
Список
Период
Сортировка
Искать
От
Ashutosh Bapat
Тема
Re: Indexes on partitioned tables and foreign partitions
Дата
в 15:52:15
Msg-id
CAFjFpRe0QDU10uR3MeGcrGCvU5xuiqcPBa9P5yWwSdaUBiKtGA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Indexes on partitioned tables and foreign partitions Arseny Sher <a.sher@postgrespro.ru>
Re: Indexes on partitioned tables and foreign partitions Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Indexes on partitioned tables and foreign partitions Simon Riggs <simon@2ndquadrant.com>
Re: Indexes on partitioned tables and foreign partitions Arseny Sher <a.sher@postgrespro.ru>
Re: Indexes on partitioned tables and foreign partitions Simon Riggs <simon@2ndquadrant.com>
Re: Indexes on partitioned tables and foreign partitions Arseny Sher <a.sher@postgrespro.ru>
Re: Indexes on partitioned tables and foreign partitions Robert Haas <robertmhaas@gmail.com>
Re: Indexes on partitioned tables and foreign partitions Tom Lane <tgl@sss.pgh.pa.us>
Re: Indexes on partitioned tables and foreign partitions Michael Paquier <michael@paquier.xyz>
Re: Indexes on partitioned tables and foreign partitions Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Indexes on partitioned tables and foreign partitions Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Indexes on partitioned tables and foreign partitions Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Indexes on partitioned tables and foreign partitions Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Indexes on partitioned tables and foreign partitions Simon Riggs <simon@2ndquadrant.com>
Re: Indexes on partitioned tables and foreign partitions Robert Haas <robertmhaas@gmail.com>
Re: Indexes on partitioned tables and foreign partitions Simon Riggs <simon@2ndquadrant.com>
Re: Indexes on partitioned tables and foreign partitions Robert Haas <robertmhaas@gmail.com>
Re: Indexes on partitioned tables and foreign partitions Simon Riggs <simon@2ndquadrant.com>
Re: Indexes on partitioned tables and foreign partitions Robert Haas <robertmhaas@gmail.com>
Re: Indexes on partitioned tables and foreign partitions Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Indexes on partitioned tables and foreign partitions Michael Paquier <michael@paquier.xyz>
Re: Indexes on partitioned tables and foreign partitions Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Indexes on partitioned tables and foreign partitions Robert Haas <robertmhaas@gmail.com>
Re: Indexes on partitioned tables and foreign partitions Simon Riggs <simon@2ndquadrant.com>
Re: Indexes on partitioned tables and foreign partitions Robert Haas <robertmhaas@gmail.com>
On Wed, May 9, 2018 at 5:20 PM, Arseny Sher  wrote:
> Hi,
>
> 8b08f7d4 added propagation of indexes on partitioned tables to
> partitions, which is very cool. However, index creation also recurses
> down to foreign tables. I doubt this is intentional, as such indexes are
> forbidden as not making much sense; attempt to create index on
> partitioned table with foreign partition leads to an error
> now. Attached lines fix this.
>

The patch looks good, but I guess that we have to do some tricks with
the validity of index on the partitioned table since not all
partitions have a given index when one of those is a foreign
partition.
-- 
Best Wishes,
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company

В списке pgsql-hackers по дате отправления
От: Etsuro Fujita
Дата:
От: Simon Riggs
Дата:
FAQ