pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Avoid low-probability crash on out-of-memory.
3+ messages / 1 participants
[nested] [flat]

* pgsql: Avoid low-probability crash on out-of-memory.
@ 2024-12-05 17:54 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2024-12-05 17:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Avoid low-probability crash on out-of-memory.

check_restrict_nonsystem_relation_kind() correctly uses guc_malloc()
in v16 and later.  But in older branches it must use malloc()
directly, and it forgot to check for failure return.
Faulty backpatching of 66e94448a.

Karina Litskevich

Discussion: https://postgr.es/m/CACiT8iZ=atkguKVbpN4HmJFMb4+T9yEowF5JuPZG8W+kkZ9L6w@mail.gmail.com

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4398507dfafcbb92efd4fab816f3f8a1c0f34761

Modified Files
--------------
src/backend/tcop/postgres.c | 5 +++++
1 file changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Avoid low-probability crash on out-of-memory.
@ 2024-12-05 17:54 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2024-12-05 17:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Avoid low-probability crash on out-of-memory.

check_restrict_nonsystem_relation_kind() correctly uses guc_malloc()
in v16 and later.  But in older branches it must use malloc()
directly, and it forgot to check for failure return.
Faulty backpatching of 66e94448a.

Karina Litskevich

Discussion: https://postgr.es/m/CACiT8iZ=atkguKVbpN4HmJFMb4+T9yEowF5JuPZG8W+kkZ9L6w@mail.gmail.com

Branch
------
REL_14_STABLE

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

Modified Files
--------------
src/backend/tcop/postgres.c | 5 +++++
1 file changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Avoid low-probability crash on out-of-memory.
@ 2024-12-05 17:54 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2024-12-05 17:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Avoid low-probability crash on out-of-memory.

check_restrict_nonsystem_relation_kind() correctly uses guc_malloc()
in v16 and later.  But in older branches it must use malloc()
directly, and it forgot to check for failure return.
Faulty backpatching of 66e94448a.

Karina Litskevich

Discussion: https://postgr.es/m/CACiT8iZ=atkguKVbpN4HmJFMb4+T9yEowF5JuPZG8W+kkZ9L6w@mail.gmail.com

Branch
------
REL_13_STABLE

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

Modified Files
--------------
src/backend/tcop/postgres.c | 5 +++++
1 file changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2024-12-05 17:54 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-12-05 17:54 pgsql: Avoid low-probability crash on out-of-memory. Tom Lane <tgl@sss.pgh.pa.us>
2024-12-05 17:54 pgsql: Avoid low-probability crash on out-of-memory. Tom Lane <tgl@sss.pgh.pa.us>
2024-12-05 17:54 pgsql: Avoid low-probability crash on out-of-memory. Tom Lane <tgl@sss.pgh.pa.us>

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