public inbox for [email protected]  
help / color / mirror / Atom feed
From: Keith Fiske <[email protected]>
To: Sathish Reddy <[email protected]>
Cc: pgsql-admin <[email protected]>
Subject: Re: Run maintenance proc
Date: Sat, 19 Oct 2024 08:55:03 -0400
Message-ID: <CAODZiv4-OdJm_CO_OY_kpzTs7J1=nkcJgUOx90yi_=TZHL33ug@mail.gmail.com> (raw)
In-Reply-To: <CA+M9Y+Dan7N2Z4SbZ19h9NcnHGUaGw9U8zm+ongM+kn8Pcu4LA@mail.gmail.com>
References: <CA+M9Y+Dan7N2Z4SbZ19h9NcnHGUaGw9U8zm+ongM+kn8Pcu4LA@mail.gmail.com>

On Thu, Oct 17, 2024, 2:22 PM Sathish Reddy <
[email protected]> wrote:

> Hi
>
>  .. please help on below one
> Automate partition maintenance on postgres without any script on primary
> detach 3months partition at same time 4 months partition detach partition
> from replica on postgres rds.
>
> Thanks
> Sathish Reddy
>


Take a look at the pg_partman extension. It automates new child table
creation for time-based partitioning and can set retention rules as well

https://github.com/pgpartman/pg_partman/

Keith


view thread (4+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Run maintenance proc
  In-Reply-To: <CAODZiv4-OdJm_CO_OY_kpzTs7J1=nkcJgUOx90yi_=TZHL33ug@mail.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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox