Re: Indexes on partitioned tables and foreign partitions

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Indexes on partitioned tables and foreign partitions
Дата
Msg-id CA+TgmoaH5K5W1V+FbtwJNY-YjBeZchgbKK8VpFtbGr649T-RRg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Indexes on partitioned tables and foreign partitions  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Список pgsql-hackers
On Wed, May 9, 2018 at 10:20 PM, Amit Langote
<Langote_Amit_f8@lab.ntt.co.jp> wrote:
> But it seems I've misinterpreted what he was saying.  He doesn't seem to
> be saying anything about how or whether we enforce the unique constraint
> on foreign tables.  Only that if someone creates a constraint index on the
> partitioned table, all partitions *including* foreign partitions, must get
> a copy.

Honestly, I hadn't quite gotten that far in my thinking.  That's a
really useful distinction, and I completely agree with it.

> So for now, we give users an error if they try to create an index on a
> partitioned table with a mix of local and foreign partitions.  Once we
> figure out how to allow creating indexes (constraint-enforcing or not) on
> foreign tables, we can then think of relaxing that restriction.

Yeah, that sounds exactly right.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Should we add GUCs to allow partition pruning to be disabled?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Should we add GUCs to allow partition pruning to be disabled?