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

> Is your performance concern on how such switch statement will be optimized by 
> the C-compiler?

I guess he is concerned about the number of catalog accesses.


-- 
Álvaro Herrera                            39°49'30"S 73°17'W
"Saca el libro que tu religión considere como el indicado para encontrar la
oración que traiga paz a tu alma. Luego rebootea el computador
y ve si funciona" (Carlos Duclós)


Reply via email to