Re: [PATCH] Check operator when creating unique index on partition table

2020-03-27 Thread Guancheng Luo
> On Mar 26, 2020, at 01:00, Tom Lane wrote: > > Guancheng Luo writes: >> I found that things could go wrong in some cases, when the unique index and >> the partition key use different opclass. > > I agree that this is an oversight, but it seems like your soluti

[PATCH] Check operator when creating unique index on partition table

2020-03-25 Thread Guancheng Luo
So the unique index should not be allowed to create, since ‘-1’ and ‘1’ will be put in different partition. The attached patch should fix this problem. 0001-Check-operator-when-creating-UNIQUE-index-on-PARTITI.patch Description: Binary data Best Regards, Guancheng Luo