pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM seg 6+ messages / 1 participants [nested] [flat]
* pgsql: Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM seg @ 2026-11-18 18:58 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Masahiko Sawada @ 2026-11-18 18:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM segments. Callers allocating DSA memory with DSA_ALLOC_NO_OOM expect to get InvalidDsaPointer on allocation failure so that they can clean up and handle the failure themselves. However, since commit 13df76a537c, a new DSM segment for a DSA area has been created without DSM_CREATE_NULL_IF_MAXSEGMENTS, so running out of DSM segments raised an ERROR instead of returning InvalidDsaPointer. Fix by passing DSM_CREATE_NULL_IF_MAXSEGMENTS. Backpatch to all supported versions. Author: Baji Shaik <baji.pgdev@gmail.com> Reviewed-by: Zhijie Hou <houzhijie22@gmail.com> Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com> Discussion: https://postgr.es/m/CA+fm-RMyb6EoMuk+a4_hZou9cdTHfB6mj1UV-7yb_YuTWLug1g@mail.gmail.com Backpatch-through: 15 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/19ab0bae3aa3c006503da10e6e250d6e5529394c Modified Files -------------- src/backend/utils/mmgr/dsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM seg @ 2026-11-18 18:58 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Masahiko Sawada @ 2026-11-18 18:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM segments. Callers allocating DSA memory with DSA_ALLOC_NO_OOM expect to get InvalidDsaPointer on allocation failure so that they can clean up and handle the failure themselves. However, since commit 13df76a537c, a new DSM segment for a DSA area has been created without DSM_CREATE_NULL_IF_MAXSEGMENTS, so running out of DSM segments raised an ERROR instead of returning InvalidDsaPointer. Fix by passing DSM_CREATE_NULL_IF_MAXSEGMENTS. Backpatch to all supported versions. Author: Baji Shaik <baji.pgdev@gmail.com> Reviewed-by: Zhijie Hou <houzhijie22@gmail.com> Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com> Discussion: https://postgr.es/m/CA+fm-RMyb6EoMuk+a4_hZou9cdTHfB6mj1UV-7yb_YuTWLug1g@mail.gmail.com Backpatch-through: 15 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1eb1e8b5f366b78d5a0e3821c3a197b7ab0f6ea4 Modified Files -------------- src/backend/utils/mmgr/dsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM seg @ 2026-11-18 18:58 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Masahiko Sawada @ 2026-11-18 18:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM segments. Callers allocating DSA memory with DSA_ALLOC_NO_OOM expect to get InvalidDsaPointer on allocation failure so that they can clean up and handle the failure themselves. However, since commit 13df76a537c, a new DSM segment for a DSA area has been created without DSM_CREATE_NULL_IF_MAXSEGMENTS, so running out of DSM segments raised an ERROR instead of returning InvalidDsaPointer. Fix by passing DSM_CREATE_NULL_IF_MAXSEGMENTS. Backpatch to all supported versions. Author: Baji Shaik <baji.pgdev@gmail.com> Reviewed-by: Zhijie Hou <houzhijie22@gmail.com> Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com> Discussion: https://postgr.es/m/CA+fm-RMyb6EoMuk+a4_hZou9cdTHfB6mj1UV-7yb_YuTWLug1g@mail.gmail.com Backpatch-through: 15 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e3b7f6156916c2ffefb51c12a0576d8b095d5c26 Modified Files -------------- src/backend/utils/mmgr/dsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM seg @ 2026-11-18 18:58 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Masahiko Sawada @ 2026-11-18 18:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM segments. Callers allocating DSA memory with DSA_ALLOC_NO_OOM expect to get InvalidDsaPointer on allocation failure so that they can clean up and handle the failure themselves. However, since commit 13df76a537c, a new DSM segment for a DSA area has been created without DSM_CREATE_NULL_IF_MAXSEGMENTS, so running out of DSM segments raised an ERROR instead of returning InvalidDsaPointer. Fix by passing DSM_CREATE_NULL_IF_MAXSEGMENTS. Backpatch to all supported versions. Author: Baji Shaik <baji.pgdev@gmail.com> Reviewed-by: Zhijie Hou <houzhijie22@gmail.com> Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com> Discussion: https://postgr.es/m/CA+fm-RMyb6EoMuk+a4_hZou9cdTHfB6mj1UV-7yb_YuTWLug1g@mail.gmail.com Backpatch-through: 15 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d3332adf931e178cbed1d5ab33f8117eee95987a Modified Files -------------- src/backend/utils/mmgr/dsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM seg @ 2026-11-18 18:59 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Masahiko Sawada @ 2026-11-18 18:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM segments. Callers allocating DSA memory with DSA_ALLOC_NO_OOM expect to get InvalidDsaPointer on allocation failure so that they can clean up and handle the failure themselves. However, since commit 13df76a537c, a new DSM segment for a DSA area has been created without DSM_CREATE_NULL_IF_MAXSEGMENTS, so running out of DSM segments raised an ERROR instead of returning InvalidDsaPointer. Fix by passing DSM_CREATE_NULL_IF_MAXSEGMENTS. Backpatch to all supported versions. Author: Baji Shaik <baji.pgdev@gmail.com> Reviewed-by: Zhijie Hou <houzhijie22@gmail.com> Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com> Discussion: https://postgr.es/m/CA+fm-RMyb6EoMuk+a4_hZou9cdTHfB6mj1UV-7yb_YuTWLug1g@mail.gmail.com Backpatch-through: 15 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/91bdcd71baea2ff5a83cc15b3bde4b98a0bd09eb Modified Files -------------- src/backend/utils/mmgr/dsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM seg @ 2026-11-18 18:59 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Masahiko Sawada @ 2026-11-18 18:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM segments. Callers allocating DSA memory with DSA_ALLOC_NO_OOM expect to get InvalidDsaPointer on allocation failure so that they can clean up and handle the failure themselves. However, since commit 13df76a537c, a new DSM segment for a DSA area has been created without DSM_CREATE_NULL_IF_MAXSEGMENTS, so running out of DSM segments raised an ERROR instead of returning InvalidDsaPointer. Fix by passing DSM_CREATE_NULL_IF_MAXSEGMENTS. Backpatch to all supported versions. Author: Baji Shaik <baji.pgdev@gmail.com> Reviewed-by: Zhijie Hou <houzhijie22@gmail.com> Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com> Discussion: https://postgr.es/m/CA+fm-RMyb6EoMuk+a4_hZou9cdTHfB6mj1UV-7yb_YuTWLug1g@mail.gmail.com Backpatch-through: 15 Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/597d5c1fef84855254bdc93ebfa612beff889006 Modified Files -------------- src/backend/utils/mmgr/dsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2026-11-18 18:59 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-11-18 18:58 pgsql: Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM seg Masahiko Sawada <msawada@postgresql.org> 2026-11-18 18:58 pgsql: Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM seg Masahiko Sawada <msawada@postgresql.org> 2026-11-18 18:58 pgsql: Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM seg Masahiko Sawada <msawada@postgresql.org> 2026-11-18 18:58 pgsql: Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM seg Masahiko Sawada <msawada@postgresql.org> 2026-11-18 18:59 pgsql: Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM seg Masahiko Sawada <msawada@postgresql.org> 2026-11-18 18:59 pgsql: Fix DSA allocation to honor DSA_ALLOC_NO_OOM when out of DSM seg Masahiko Sawada <msawada@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox