Re: pgsql: Allow UNIQUE indexes on partitioned tables
От | Alvaro Herrera |
---|---|
Тема | Re: pgsql: Allow UNIQUE indexes on partitioned tables |
Дата | |
Msg-id | 20180312163415.6s3enkeetf5cbkot@alvherre.pgsql обсуждение исходный текст |
Ответ на | Re: pgsql: Allow UNIQUE indexes on partitioned tables ("David G. Johnston" <david.g.johnston@gmail.com>) |
Список | pgsql-hackers |
David G. Johnston wrote: > Something like: > > When establishing a unique constraint for a multi-level partition hierarchy > all the "partition by" columns of the target partitioned table, as well as > those of all its descendant partitioned tables, must be included in the > constraint definition. Yeah, that seems better to me. Pushed. > If I understand the above then the following failing test would be a worthy > addition to memorialize the behavior of ALTER TABLE ATTACH under this > constraint. > > create table idxpart (a int primary key, b int) partition by range (a); > create table idxpart1 (a int not null, b int, primary key (a, b)) partition > by range (a, b); > alter table idxpart attach partition idxpart1 for values from (1) to (1000); Included this one too. Thanks for reading! -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления: