refactor ExecGrant_*() functions

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: refactor ExecGrant_*() functions
Date: 2022-12-02 07:30:55
Message-ID: 22c7e802-4e7d-8d87-8b71-cba95e6f4bcf@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)1652105397(at)antos

Attachment Content-Type Size
0001-Refactor-ExecGrant_-functions.patch text/plain 24.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2022-12-02 07:35:10 Re: Improve performance of pg_strtointNN functions
Previous Message Bharath Rupireddy 2022-12-02 07:30:25 Re: Introduce a new view for checkpointer related stats