pgsql: Fix some near-bugs related to ResourceOwner function arguments

2025-12-10 Thread Heikki Linnakangas
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 CurrentRes

pgsql: Fix some near-bugs related to ResourceOwner function arguments

2025-12-10 Thread Heikki Linnakangas
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 CurrentRes

pgsql: Fix some near-bugs related to ResourceOwner function arguments

2025-12-10 Thread Heikki Linnakangas
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 CurrentRes