]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix some near-bugs related to ResourceOwner function arguments
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 10 Dec 2025 09:43:16 +0000 (11:43 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 10 Dec 2025 09:43:53 +0000 (11:43 +0200)
commite8dc5810a227d5671c25dc2c7dbe1321093a08a6
treea51054d0cc12cc865d41bc9f1037d48154b8860b
parent1756b9f616b662f9a3c98f02d6fc2932a195d8e1
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
src/backend/storage/aio/aio.c
src/backend/utils/cache/catcache.c