Re: [Patch] add new parameter to pg_replication_origin_session_setup
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: shveta malik <shveta.malik@gmail.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>,
"Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>, "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>,
Doruk Yilmaz <doruk@mixrank.com>
Date: 2026-03-26T06:40:08Z
Lists: pgsql-hackers
On Wed, Mar 25, 2026 at 3:03 PM shveta malik <shveta.malik@gmail.com> wrote: > > On Wed, Mar 25, 2026 at 1:51 PM Amit Kapila <amit.kapila16@gmail.com> wrote: > > > > On Wed, Feb 11, 2026 at 5:09 PM shveta malik <shveta.malik@gmail.com> wrote: > > > > > > On Wed, Feb 11, 2026 at 3:41 PM Amit Kapila <amit.kapila16@gmail.com> wrote: > > > > > > > > > > > > I see your point but one advantage with the proposed code change is > > > > that it started to appear that we can extend this part of code easily > > > > in the future as it separates most of the handling related to when a > > > > user has given acquired_by parameter's value as zero and non-zero. > > > > > > Okay, yes. So I am okay with it. The slight change I suggested (if to > > > else-if) and a comment will make it more clean. > > > > > > > I have tried to address both your suggestions in the attached. See, if > > this looks okay to you now? > > > > LGTM now, thanks! > Pushed. -- With Regards, Amit Kapila.
Commits
-
Refactor replorigin_session_setup() for better readability.
- 735e8fe68535 19 (unreleased) landed
-
Prevent unintended dropping of active replication origins.
- e385a4e2fd8e 19 (unreleased) landed
-
Add optional pid parameter to pg_replication_origin_session_setup().
- 5b148706c5c8 19 (unreleased) landed