Re: [PATCH] pg_permissions

From: "Joel Jacobson" <joel(at)compiler(dot)org>
To: "Alvaro Herrera" <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Joe Conway" <mail(at)joeconway(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] pg_permissions
Date: 2021-03-26 12:33:52
Message-ID: 75e26115-a70d-4e23-bd3e-1a39c2d8664a@www.fastmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Mar 26, 2021, at 11:30, Alvaro Herrera wrote:
> On 2021-Mar-26, Joel Jacobson wrote:
>
> > On Thu, Mar 25, 2021, at 17:51, Tom Lane wrote:
>
> > > I wonder what performance will be like with lots o' objects.
> >
> > I guess pg_get_acl() would need to be implemented using a switch(classid) with 36 cases (one for each class)?
>
> No, we have a generalized object query mechanism, see objectaddress.c

That's where I was looking actually and noticed the switch with 36 cases, in the function getObjectDescription().

/Joel

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2021-03-26 12:43:27 Re: [PATCH] pg_permissions
Previous Message Markus Wanner 2021-03-26 12:20:24 Re: [PATCH] add concurrent_abort callback for output plugin