Fix some near-bugs related to ResourceOwner function arguments
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Author:
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2025-12-10T09:43:16Z
Releases:
19 (unreleased)
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 <boekewurm+postgres@gmail.com> Discussion: https://www.postgresql.org/message-id/CAEze2Whnfv8VuRZaohE-Af+GxBA1SNfD_rXfm84Jv-958UCcJA@mail.gmail.com Backpatch-through: 17
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/aio/aio.c | modified | +6 −6 |
| src/backend/utils/cache/catcache.c | modified | +2 −2 |
Discussion
- Small bugs regarding resowner handling in aio.c, catcache.c 3 messages · 2025-12-09 → 2025-12-10