Re: [Patch] add new parameter to pg_replication_origin_session_setup
Doruk Yilmaz <doruk@mixrank.com>
From: Doruk Yilmaz <doruk@mixrank.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org, "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Date: 2025-09-08T17:22:22Z
Lists: pgsql-hackers
Attachments
- v6-0001-pg_replication_origin_session_setup-pid-parameter.patch (text/x-patch) patch v6-0001
> Then why didn't you specified PARALLEL UNSAFE as well? You are correct, I missed marking the function as PARALLEL UNSAFE. I’ve attached a revised patch with the correct annotation. > BTW, yesterday a new thread started with the same requirement [1]. It > uses a slightly different way to define the new function. do you have > any opinion on it? I don’t think introducing a separate function is a good idea. It’s effectively the same behavior, technical debt, and maintenance overhead without a clear benefit. Our patch keeps a single function with a default parameter, so it’s not a breaking change. So I believe our approach is preferable. But I would say that, the fact that another patch is proposing the same capability indicates there’s broader demand for this change.
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