Re: Add SPLIT PARTITION/MERGE PARTITIONS commands

From: Zhihong Yu <zyu(at)yugabyte(dot)com>
To: Dmitry Koval <d(dot)koval(at)postgrespro(dot)ru>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Date: 2022-10-11 16:58:01
Message-ID: CALNJ-vTgp527=NiduNv5Q42pY3zaUnJjTDEf1-=JcX6sZyGFRA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Oct 11, 2022 at 9:22 AM Dmitry Koval <d(dot)koval(at)postgrespro(dot)ru> wrote:

> Hi!
>
> Fixed couple warnings (for cfbot).
>
> --
> With best regards,
> Dmitry Koval
>
> Postgres Professional: http://postgrespro.com

Hi,
For v12-0001-PGPRO-ALTER-TABLE-MERGE-PARTITIONS-command.patch:

+ if (equal(name, cmd->name))
+ /* One new partition can have the same name as merged
partition. */
+ isSameName = true;

I think there should be a check before assigning true to isSameName - if
isSameName is true, that means there are two partitions with this same name.

Cheers

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2022-10-11 17:00:36 Re: Clarifying docs on nuance of select and update policies
Previous Message Alvaro Herrera 2022-10-11 16:24:26 Re: Remove an unnecessary LSN calculation while validating WAL page header