Re: concurrent re-partitioning of declarative partitioned tables

From: Michael Lewis <mlewis(at)entrata(dot)com>
To: Nick Cleaton <nick(at)cleaton(dot)net>
Cc: PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: concurrent re-partitioning of declarative partitioned tables
Date: 2020-12-02 15:59:32
Message-ID: CAHOFxGorjGyWXrMUhCMQaeVMwR+p0QDS+My31+HcyGNTnuJmvA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You can not have overlapping partitions that are both attached. Why do you
want to merge partitions that you are "done with" instead of just leaving
them partitioned by day?

Why are you partitioning at all? Are you confident that you need partitions
for performance & that the trade-offs are worth the cost, or are you
needing to detach/drop old data quickly to adhere to a retention policy?

pg_partman extension may be worth looking into. I have only dabbled with
it, so I can't offer much comment.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2020-12-02 16:07:45 Re: concurrent re-partitioning of declarative partitioned tables
Previous Message Adrian Klaver 2020-12-02 15:31:01 Re: error on connecting port 5432