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

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: 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 07:04:19
Message-ID: a9aa4d47-9db8-0da8-641c-67ea8fbe893c@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 5/22/23 01:53, Phani Prathyush Somayajula wrote:
>
> Hi All,
>
> I’ve a table ermabet having 80mil records. My business need is to check
> the bet placed by a player(users), which queries the table, and enable
> streaming for the player only if he has placed his bet in the last 24 hrs(
> granular to the millisecond).
>
[snip]
>
> But I don’t want */PLACEDON/* column part of the primary key.
>

And I didn't want partition_date in my PK, either, but I had to add so as to
partition on the part_date column.

--
Born in Arizona, moved to Babylonia.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ron 2023-05-22 07:07:20 Re: Partition By Range Without PrimaryKey : Postgresql Version 12.8 on AWS RDS
Previous Message Phani Prathyush Somayajula 2023-05-22 07:02:35 RE: Partition By Range Without PrimaryKey : Postgresql Version 12.8 on AWS RDS