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-07-13 20:17:30
Message-ID: CALNJ-vQCCdWfFPVmKCSJXXAwDV6kQEetwm_a7+pNn2OQcdk=4A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jul 13, 2022 at 1:05 PM Dmitry Koval <d(dot)koval(at)postgrespro(dot)ru> wrote:

> Thanks you!
> I've fixed all things mentioned.
>
> --
> With best regards,
> Dmitry Koval
>
> Postgres Professional: http://postgrespro.com

Hi,
Toward the end of ATExecSplitPartition():

+ /* Unlock new partition. */
+ table_close(newPartRel, NoLock);

Why is NoLock passed (instead of AccessExclusiveLock) ?

Cheers

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dmitry Koval 2022-07-13 20:33:45 Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Previous Message Dmitry Koval 2022-07-13 20:05:44 Re: Add SPLIT PARTITION/MERGE PARTITIONS commands