pgsql: Fix dangling pointer reference in stream_cleanup_files. - Mailing list pgsql-committers

From Amit Kapila
Subject pgsql: Fix dangling pointer reference in stream_cleanup_files.
Date
Msg-id E1lOYWk-0001SR-Du@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix dangling pointer reference in stream_cleanup_files.

We can't access the entry after it is removed from dynahash.

Author: Peter Smith
Discussion: https://postgr.es/m/CAHut+Ps-pL++f6CJwPx2+vUqXuew=Xt-9Bi-6kCyxn+Fwi2M7w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4b82ed6eca41220e50d4712ab929c20030b30d35

Modified Files
--------------
src/backend/replication/logical/worker.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)


pgsql-committers by date:

Previous
From: Tomas Vondra
Date:
Subject: pgsql: Use correct spelling of statistics kind
Next
From: "tsunakawa.takay@fujitsu.com"
Date:
Subject: RE: pgsql: Add a new GUC and a reloption to enable inserts in parallel-mode