Re: Add SPLIT PARTITION/MERGE PARTITIONS commands

From: Dmitry Koval <d(dot)koval(at)postgrespro(dot)ru>
To: Zhihong Yu <zyu(at)yugabyte(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Date: 2022-07-13 20:33:45
Message-ID: a351ab9a-337d-dda5-7dcf-5b35100b7447@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> +       /* Unlock new partition. */
> +       table_close(newPartRel, NoLock);
>
>  Why is NoLock passed (instead of AccessExclusiveLock) ?

Thanks!

You're right, I replaced the comment with "Keep the lock until commit.".

--
With best regards,
Dmitry Koval

Postgres Professional: http://postgrespro.com

Attachment Content-Type Size
v6-0001-partitions-split-merge.patch text/plain 255.1 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2022-07-13 20:49:01 Re: proposal: possibility to read dumped table's name from file
Previous Message Zhihong Yu 2022-07-13 20:17:30 Re: Add SPLIT PARTITION/MERGE PARTITIONS commands