pgsql: smgr: Make SMgrRelation initialization safer against errors - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: smgr: Make SMgrRelation initialization safer against errors
Date
Msg-id E1tubQu-0038K5-2b@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
smgr: Make SMgrRelation initialization safer against errors

In case the smgr_open callback failed, the ->pincount field would not be
initialized and the relation would not be put onto the unpinned_relns list.

This buglet was introduced in 21d9c3ee4ef7, in 17.

Discussion: https://postgr.es/m/3vae7l5ozvqtxmd7rr7zaeq3qkuipz365u3rtim5t5wdkr6f4g@vkgf2fogjirl
Backpatch-through: 17

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ee578921b60ef9a14eaea54b608549e4f8b14f26

Modified Files
--------------
src/backend/storage/smgr/smgr.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Álvaro Herrera
Date:
Subject: pgsql: Introduce squashing of constant lists in query jumbling
Next
From: Tom Lane
Date:
Subject: pgsql: Doc: manually break lines in wide UUID examples.