File tree Expand file tree Collapse file tree 1 file changed +34
-3
lines changed
Expand file tree Collapse file tree 1 file changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ schema,表名必须一致。
4034032\. 在订阅端调用pg_replication_origin_advance(node_name text, pos pg_lsn)函数,node_name就是subscription name,pos指重新开始的LSN,从而跳过有冲突的事务。
404404
405405```
406- pg_replication_origin_advance(node_name text, pos pg_lsn)
406+ pg_replication_origin_advance(node_name text, pos pg_lsn)
407407
408408Set replication progress for the given node to the given position.
409409
@@ -589,7 +589,7 @@ max_wal_size = 64GB
589589min_wal_size = 32GB
590590checkpoint_completion_target = 0.05
591591checkpoint_flush_after = 0
592- max_wal_senders = 32
592+ max_wal_senders = 48
593593max_replication_slots = 32
594594random_page_cost = 1.5
595595parallel_tuple_cost = 0
@@ -928,8 +928,39 @@ dst=# select * from pg_replication_origin_status;
9289283\. 在订阅端,delete, update 不存在记录,不报错
929929
9309304\. 目前PostgreSQL逻辑复制还有很多优化空间,比如分组,比如合并,提升复制效率。
931+
932+ 5\. 相关系统表、视图、函数
933+
934+ ```
935+ pg_publication
936+ pg_stat_replication
937+ pg_replication_slots
938+ pg_subscription
939+ pg_stat_subscription
940+ pg_replication_origin_status
941+ ```
942+
943+ 6\. 相关语法
944+
945+ ```
946+ CREATE PUBLICATION
947+
948+ CREATE SUBSCRIPTION
949+ ```
950+
951+ 7\. 相关参数
952+
953+ ```
954+ postgresql.conf
955+ max_worker_processes = 128
956+ max_logical_replication_workers = 32
957+ max_wal_senders = 48
958+ max_replication_slots = 48
959+
960+ pg_hba.conf
961+ host replication postgres 0.0.0.0/0 md5
962+ ```
931963
932964## 参考
933965https://www.postgresql.org/docs/devel/static/logical-replication.html
934966
935-
You can’t perform that action at this time.
0 commit comments