Fix some near-bugs related to ResourceOwner function arguments

These functions took a ResourceOwner argument, but only checked if it
was NULL, and then used CurrentResourceOwner for the actual work.
Surely the intention was to use the passed-in resource owner. All
current callers passed CurrentResourceOwner or NULL, so this has no
consequences at the moment, but it's an accident waiting to happen for
future caller and extensions.

Author: Matthias van de Meent <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/caeze2whnfv8vurzaohe-af+gxba1snfd_rxfm84jv-958uc...@mail.gmail.com
Backpatch-through: 17

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/998d100cdb7220a81b8775b67fbc1d5bbb918052

Modified Files
--------------
src/backend/utils/cache/catcache.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Reply via email to