Re: Rework confusing permissions for LOCK TABLE

2022-12-30 Thread Nathan Bossart
I filed a commitfest entry for this so that it doesn't get lost: https://commitfest.postgresql.org/41/4093 -- Nathan Bossart Amazon Web Services: https://aws.amazon.com

Re: Rework confusing permissions for LOCK TABLE

2022-12-14 Thread Nathan Bossart
On Tue, Dec 13, 2022 at 06:59:48PM -0800, Jeff Davis wrote: > I can't think of any reason for this behavior, and I didn't find an > obvious answer in the last commits to touch that (2ad36c4e44, > fa2642438f). I can't think of a reason, either. > Patch attached to simplify it. It uses the philosop

Rework confusing permissions for LOCK TABLE

2022-12-13 Thread Jeff Davis
The existing permissions for LOCK TABLE are surprising/confusing. For instance, if you have UPDATE privileges on a table, you can lock in any mode *except* ACCESS SHARE. drop table x cascade; drop user u1; create user u1; create table x(i int); grant update on x to u1; set session aut