From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Alexander Lakhin <exclusion(at)gmail(dot)com> |
Cc: | Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Dmitry Koval <d(dot)koval(at)postgrespro(dot)ru>, Justin Pryzby <pryzby(at)telsasoft(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Pavel Borisov <pashkin(dot)elfe(at)gmail(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Add SPLIT PARTITION/MERGE PARTITIONS commands |
Date: | 2024-04-28 13:42:59 |
Message-ID: | CAKFQuwbb=5kjZggcMB=sbzz2fbk3ijDjZJmoB_t-=-CUTg8zsg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sunday, April 28, 2024, Alexander Lakhin <exclusion(at)gmail(dot)com> wrote:
>
> When we deal with mixed ownership, say, bob is an owner of a
> partitioned table, but not an owner of a partition, should we
> allow him to perform merge with that partition?
>
>
IIUC Merge causes the source tables to be dropped, their data having been
effectively moved into the new partition. bob must not be allowed to drop
Alice’s tables. Only an owner may do that. So if we do allow bob to build
a new partition using his select access, the tables he selected from would
have to remain behind if he is not an owner of them.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2024-04-28 14:09:09 | Re: Add SPLIT PARTITION/MERGE PARTITIONS commands |
Previous Message | Justin Pryzby | 2024-04-28 13:18:42 | Re: Add SPLIT PARTITION/MERGE PARTITIONS commands |