refactor ExecGrant_*() functions - Mailing list pgsql-hackers

From Peter Eisentraut
Subject refactor ExecGrant_*() functions
Date
Msg-id 22c7e802-4e7d-8d87-8b71-cba95e6f4bcf@enterprisedb.com
Whole thread Raw
Responses Re: refactor ExecGrant_*() functions  (Andres Freund <andres@anarazel.de>)
Re: refactor ExecGrant_*() functions  (Antonin Houska <ah@cybertec.at>)
List pgsql-hackers
Continuing the ideas in [0], this patch refactors the ExecGrant_Foo() 
functions and replaces many of them by a common function that is driven 
by the ObjectProperty table.

It would be nice to do more here, for example ExecGrant_Language(), 
which has additional non-generalizable checks, but I think this is 
already a good start.  For example, the work being discussed on 
privileges on publications [1] would be able to take good advantage of this.


[0]: 
https://www.postgresql.org/message-id/95c30f96-4060-2f48-98b5-a4392d3b6066@enterprisedb.com
[1]: https://www.postgresql.org/message-id/flat/20330.1652105397@antos
Attachment

pgsql-hackers by date:

Previous
From: Bharath Rupireddy
Date:
Subject: Re: Introduce a new view for checkpointer related stats
Next
From: Peter Eisentraut
Date:
Subject: Re: Improve performance of pg_strtointNN functions