Re: suggestion about time based partitioning and hibernate

From: Luca Ferrari <fluca1978(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: suggestion about time based partitioning and hibernate
Date: 2023-07-20 15:31:27
Message-ID: CAKoxK+6oppv0xR0cwmuOxeepqeogydKgKT2RiPZJvS0rOV9-7g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jul 19, 2023 at 6:45 PM Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> wrote:
>
> Therefore I suggest to avoid doing
> that. Either look at some other partitioning scheme that doesn't
> involve adding columns to the primary key, or disregard partitioning for
> this table entirely.

What do you mean by "other partitioning scheme"? There is nothing that
comes into my mind at the moment.
The problem is that, unluckily, the table is already greater than 50GB
in seize and is keep growing, so I guess something has to be done, at
least for a manainance point of view.

Would a partition by hash on the single column primary key be such a bad idea?

Thanks,
Luca

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Anthony Apollis 2023-07-20 15:47:08 Re: TSQL To Postgres - Unpivot/Union All
Previous Message Adrian Klaver 2023-07-20 15:21:55 Re: My 1st JDBC and PostgreSQL