refactor ownercheck and aclcheck functions

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: refactor ownercheck and aclcheck functions
Date: 2022-10-14 07:39:26
Message-ID: 95c30f96-4060-2f48-98b5-a4392d3b6066@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

These patches take the dozens of mostly-duplicate pg_foo_ownercheck()
and pg_foo_aclcheck() functions and replace (most of) them by common
functions that are driven by the ObjectProperty table. All the required
information is already in that table.

This is similar to the consolidation of the drop-by-OID functions that
we did a while ago (b1d32d3e3230f00b5baba08f75b4f665c7d6dac6).

Attachment Content-Type Size
0001-Refactor-ownercheck-functions.patch text/plain 31.9 KB
0002-Refactor-aclcheck-functions.patch text/plain 41.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2022-10-14 07:55:05 Re: New docs chapter on Transaction Management and related changes
Previous Message Masahiko Sawada 2022-10-14 07:12:48 Re: [PoC] Improve dead tuple storage for lazy vacuum