Re: Partition By Range Without PrimaryKey : Postgresql Version 12.8 on AWS RDS

From: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
To: Phani Prathyush Somayajula <phani(dot)somayajula(at)pragmaticplay(dot)com>
Cc: Matti Linnanvuori <matti(dot)linnanvuori(at)portalify(dot)com>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Partition By Range Without PrimaryKey : Postgresql Version 12.8 on AWS RDS
Date: 2023-05-22 13:17:53
Message-ID: 9558F0D3-4B5B-4CE2-A27F-156149E75916@elevated-dev.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On May 22, 2023, at 1:02 AM, Phani Prathyush Somayajula <phani(dot)somayajula(at)pragmaticplay(dot)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 expressions or 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)

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Ribe 2023-05-22 13:24:49 Re: Partition By Range Without PrimaryKey : Postgresql Version 12.8 on AWS RDS
Previous Message Priancka Chatz 2023-05-22 12:54:10 Re: RDS No free space