Re: [Patch] add new parameter to pg_replication_origin_session_setup
От | Doruk Yilmaz |
---|---|
Тема | Re: [Patch] add new parameter to pg_replication_origin_session_setup |
Дата | |
Msg-id | CAMPB6wcOWBURHB1igRgCjD3geAemdoATfkKByMwrMM1TgMN64w@mail.gmail.com обсуждение исходный текст |
Ответ на | RE: [Patch] add new parameter to pg_replication_origin_session_setup ("Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>) |
Список | pgsql-hackers |
Dear Hayato, > Can you explain more why we must extend the SQL interface? In our system the workers aren't background workers and we don't ship a server-side extension; they're plain external processes (Python in our case) talking over standard database connections. In many deployments -especially managed Postgres- we can't load custom C code even if we wanted to. That's why we want to expose the existing pid knob via SQL: it lets ordinary client sessions participate in the same, already-implemented origin coordination without maintaining a fork or an extension. This patch doesn't invent a new capability, it just makes the internal behavior reachable from SQL. The new argument is optional and defaults to the current behavior, so nothing changes for existing users. It also keeps the feature usable from any language/runtime that coordinates parallel apply at the application layer. And I don't believe it is that dangerous or risky. The actual code we use in python is not that complex that I believe a person using replication already should be able to set it up. I don't understand why being able to achieve parallel replication is not accessible via SQL already. I am happy to do changes to the patch if you think there should be more guardrails. Thanks, Doruk Yılmaz
В списке pgsql-hackers по дате отправления: