备用节点上的逻辑解码(Logical decoding on a standby node)

编程入门 行业动态 更新时间:2024-10-27 00:25:53
备用节点上的逻辑解码(Logical decoding on a standby node)

PostgreSQL 9.4引入了逻辑解码: http : //www.postgresql.org/docs/9.4/static/logicaldecoding.html

它还具有Cascade Streaming Replication: http : //www.postgresql.org/docs/9.4/static/warm-standby.html#CASCADING-REPLICATION

逻辑解码似乎基于流复制。 但是,PostgreSQL服务器将拒绝在热备用服务器上启动逻辑复制插槽。 它只允许主节点上的逻辑解码。

是什么阻止热备用节点使用逻辑解码以级联方式复制自身?

PostgreSQL 9.4 introduced Logical Decoding: http://www.postgresql.org/docs/9.4/static/logicaldecoding.html

It also has Cascade Streaming Replication: http://www.postgresql.org/docs/9.4/static/warm-standby.html#CASCADING-REPLICATION

Logical Decoding seems to be based on Streaming Replication. However a PostgreSQL server will refuse to start a Logical replication slot on a hot standby. It will only allow Logical Decoding on the master node.

What prevents a hot standby node to replicate itself in cascade using Logical Decoding?

最满意答案

为PostgreSQL 10提交了一个补丁,但没有进入 。

PostgreSQL 11的工作仍在继续 。

一旦基本功能在postgres中,像pglogical这样的客户端将需要修改以支持从备用数据库进行流式传输。

A patch was submitted for PostgreSQL 10, but didn't get in.

Work continues for PostgreSQL 11.

Clients like pglogical will need modification to support streaming from a standby once the basic functionality is in postgres.

更多推荐

本文发布于:2023-08-07 22:55:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1466382.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:节点   逻辑   Logical   node   standby

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!