pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: suggestion about time based partitioning and hibernate
Date: Thu, 20 Jul 2023 11:52:35 -0500
Message-ID: <f442c75b-49b3-e273-eefc-1641c04d6f7d@gmail.com> (raw)
In-Reply-To: <CAKoxK+6oppv0xR0cwmuOxeepqeogydKgKT2RiPZJvS0rOV9-7g@mail.gmail.com>
References: <CAKoxK+6xJeTK4e8nQzu62preuxT9zsPmsbw0ESyFLOWfpoWifw@mail.gmail.com>
	<20230719164539.ladmyshzldsi22cz@alvherre.pgsql>
	<CAKoxK+6oppv0xR0cwmuOxeepqeogydKgKT2RiPZJvS0rOV9-7g@mail.gmail.com>

On 7/20/23 10:31, Luca Ferrari wrote:
> On Wed, Jul 19, 2023 at 6:45 PM Alvaro Herrera <alvherre@alvh.no-ip.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?

Just do a range partition by the existing PK.

-- 
Born in Arizona, moved to Babylonia.





view thread (7+ messages)  latest in thread

Message-ID: <f442c75b-49b3-e273-eefc-1641c04d6f7d@gmail.com>
Permalink:  ../f442c75b-49b3-e273-eefc-1641c04d6f7d@gmail.com/
Also on:    postgresql.org/message-id/f442c75b-49b3-e273-eefc-1641c04d6f7d@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: suggestion about time based partitioning and hibernate
  In-Reply-To: <f442c75b-49b3-e273-eefc-1641c04d6f7d@gmail.com>
  References: <CAKoxK+6xJeTK4e8nQzu62preuxT9zsPmsbw0ESyFLOWfpoWifw@mail.gmail.com> <20230719164539.ladmyshzldsi22cz@alvherre.pgsql> <CAKoxK+6oppv0xR0cwmuOxeepqeogydKgKT2RiPZJvS0rOV9-7g@mail.gmail.com> <f442c75b-49b3-e273-eefc-1641c04d6f7d@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox