Re: Partition By Range Without PrimaryKey : Postgresql Version 12.8 on AWS RDS - Mailing list pgsql-admin

From Scott Ribe
Subject Re: Partition By Range Without PrimaryKey : Postgresql Version 12.8 on AWS RDS
Date
Msg-id 9558F0D3-4B5B-4CE2-A27F-156149E75916@elevated-dev.com
Whole thread Raw
In response to RE: Partition By Range Without PrimaryKey : Postgresql Version 12.8 on AWS RDS  (Phani Prathyush Somayajula <phani.somayajula@pragmaticplay.com>)
Responses Re: Partition By Range Without PrimaryKey : Postgresql Version 12.8 on AWS RDS
List pgsql-admin
> On May 22, 2023, at 1:02 AM, Phani Prathyush Somayajula <phani.somayajula@pragmaticplay.com> wrote:
>
> Hello!
> The following limitations apply to partitioned tables:
>     •
> To create a unique or primary key constraint on a partitioned table, the partition keys must not include any
expressionsor function calls and the constraint's columns must include all of the partition key columns. 

Your choices:

1) Deal with reality: have placedon as part of the primary key
2) don't partition on it, index placedon
3) don't partition on it, index (brandid, playerid, placedon)




pgsql-admin by date:

Previous
From: Priancka Chatz
Date:
Subject: Re: RDS No free space
Next
From: Scott Ribe
Date:
Subject: Re: Partition By Range Without PrimaryKey : Postgresql Version 12.8 on AWS RDS