pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vallimaharajan <vallimaharajan.gs@zohocorp.com>
Subject: [PATCH] Avoid usage of freed memory in parallel_vacuum_reset_dead_items
Date: Mon, 25 Nov 2024 22:56:13 +0530

---
 src/backend/commands/vacuumparallel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

inline patch 1: src/backend/commands/vacuumparallel.c (+2/-2 lines) download inline-1.patchdiff --git a/src/backend/commands/vacuumparallel.c b/src/backend/commands/vacuumparallel.c index f26070bff2..eea55c1ac6 100644 --- a/src/backend/commands/vacuumparallel.c +++ b/src/backend/commands/vacuumparallel.c @@ -485,8 +485,8 @@ parallel_vacuum_reset_dead_items(ParallelVacuumState *pvs) LWTRANCHE_PARALLEL_VACUUM_DSA); /* Update the DSA pointer for dead_items to the new one */ - pvs->shared->dead_items_dsa_handle = dsa_get_handle(TidStoreGetDSA(dead_items)); - pvs->shared->dead_items_handle = TidStoreGetHandle(dead_items); + pvs->shared->dead_items_dsa_handle = dsa_get_handle(TidStoreGetDSA(pvs->dead_items)); + pvs->shared->dead_items_handle = TidStoreGetHandle(pvs->dead_items); /* Reset the counter */ dead_items_info->num_items = 0; -- 2.34.1
------=_Part_25938_355327261.1732559227961--

Message-ID: <no-message-id-25446@localhost>
Permalink:  ../no-message-id-25446@localhost/
Also on:    postgresql.org/message-id/no-message-id-25446@localhost

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: vallimaharajan.gs@zohocorp.com
  Subject: Re: [PATCH] Avoid usage of freed memory in parallel_vacuum_reset_dead_items
  In-Reply-To: <no-message-id-25446@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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