Re: Add SPLIT PARTITION/MERGE PARTITIONS commands

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Dmitry Koval <d(dot)koval(at)postgrespro(dot)ru>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Date: 2022-05-31 11:02:27
Message-ID: ca74193b9b8c8906e4ba761de74e7c030ba50877.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 2022-05-31 at 12:32 +0300, Dmitry Koval wrote:
> There are not many commands in PostgreSQL for working with partitioned
> tables. This is an obstacle to their widespread use.
> Adding SPLIT PARTITION/MERGE PARTITIONS operations can make easier to
> use partitioned tables in PostgreSQL.
> (This is especially important when migrating projects from ORACLE DBMS.)
>
> SPLIT PARTITION/MERGE PARTITIONS commands are supported for range
> partitioning (BY RANGE) and for list partitioning (BY LIST).
> For hash partitioning (BY HASH) these operations are not supported.

+1 on the general idea.

At least, it will makes these operations simpler, but probably also less
invasive (no need to detach the affected partitions).

I didn't read the patch, but what lock level does that place on the
partitioned table? Anything more than ACCESS SHARE?

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2022-05-31 12:09:29 Re: Allowing REINDEX to have an optional name
Previous Message Matthias van de Meent 2022-05-31 10:30:22 Re: Add SPLIT PARTITION/MERGE PARTITIONS commands