| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix some near-bugs related to ResourceOwner function arguments |
| Date: | 2025-12-10 09:50:52 |
| Message-ID: | E1vTGqS-003n5S-1C@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/CAEze2Whnfv8VuRZaohE-Af+GxBA1SNfD_rXfm84Jv-958UCcJA@mail.gmail.com
Backpatch-through: 17
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/fa44b8b7fbb7eb0f13546aa13976f9919a4ca201
Modified Files
--------------
src/backend/storage/aio/aio.c | 12 ++++++------
src/backend/utils/cache/catcache.c | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Heikki Linnakangas | 2025-12-10 13:35:02 | pgsql: Fix comment in GetPublicationRelations |
| Previous Message | Heikki Linnakangas | 2025-12-10 09:23:39 | Re: pgsql: injection_points: Remove portions related to custom pgstats |