agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Release postmaster working memory context in slotsync worker
Date: Mon, 06 Apr 2026 14:05:37 +0000
Message-ID: <E1w9ka8-003Eok-13@gemulon.postgresql.org> (raw)
Release postmaster working memory context in slotsync worker
Child processes do not need the postmaster's working memory context and
normally release it at the start of their main entry point. However,
the slotsync worker forgot to do so.
This commit makes the slotsync worker release the postmaster's working
memory context at startup, preventing unintended use.
Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Tiancheng Ge <getiancheng_2012@163.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/CAHGQGwHO05JaUpgKF8FBDmPdBUJsK22axRRcgmAUc2Jyi8OK8g@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/93dc1ace2007fe7c1103ccda3d7bc13b4eb4352f
Modified Files
--------------
src/backend/replication/logical/slotsync.c | 7 +++++++
1 file changed, 7 insertions(+)
Message-ID: <E1w9ka8-003Eok-13@gemulon.postgresql.org>
Permalink: ../E1w9ka8-003Eok-13@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1w9ka8-003Eok-13@gemulon.postgresql.org
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-committers@postgresql.org
Cc: fujii@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Release postmaster working memory context in slotsync worker
In-Reply-To: <E1w9ka8-003Eok-13@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox