public inbox for [email protected]help / color / mirror / Atom feed
pgsql: smgr: Make SMgrRelation initialization safer against errors 2+ messages / 1 participants [nested] [flat]
* pgsql: smgr: Make SMgrRelation initialization safer against errors @ 2025-03-18 18:12 Andres Freund <[email protected]> 0 siblings, 0 replies; 2+ messages in thread From: Andres Freund @ 2025-03-18 18:12 UTC (permalink / raw) To: [email protected] 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/499faf9063a4c5a9985d7ac657b86e8e34e02199 Modified Files -------------- src/backend/storage/smgr/smgr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: smgr: Make SMgrRelation initialization safer against errors @ 2025-03-18 18:12 Andres Freund <[email protected]> 0 siblings, 0 replies; 2+ messages in thread From: Andres Freund @ 2025-03-18 18:12 UTC (permalink / raw) To: [email protected] 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-03-18 18:12 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2025-03-18 18:12 pgsql: smgr: Make SMgrRelation initialization safer against errors Andres Freund <[email protected]> 2025-03-18 18:12 pgsql: smgr: Make SMgrRelation initialization safer against errors Andres Freund <[email protected]>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox