Re: why is the permission granted in a non-recursive way and what are the benefits

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: mzj1996(at)mail(dot)ustc(dot)edu(dot)cn
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: why is the permission granted in a non-recursive way and what are the benefits
Date: 2021-05-31 13:44:14
Message-ID: 2567324.1622468654@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

mzj1996(at)mail(dot)ustc(dot)edu(dot)cn writes:
> In most scenarios, we want to assign permissions to a table and partition table to a user, but in postgresql, permissions are not recursive, so we need to spend extra energy to do this. So let's ask the postgresql team, why is the permission granted in a non-recursive way and what are the benefits?

It's intentional, because you might not wish to allow users of the
partitioned table to mess with the partitions directly. Since only
the table directly named in the query is permission-checked, it's
not necessary for users of the partitioned table to have such child
permissions.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-05-31 13:49:42 Re: How to disable the autovacuum ?
Previous Message vignesh C 2021-05-31 13:37:04 Re: Addition of alias types regpublication and regsubscription