Skip to content

Commit 96bba27

Browse files
committed
fix
1 parent 5c93f30 commit 96bba27

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

201702/20170227_01.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ schema,表名必须一致。
403403
2\. 在订阅端调用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
408408
Set replication progress for the given node to the given position.
409409
@@ -589,7 +589,7 @@ max_wal_size = 64GB
589589
min_wal_size = 32GB
590590
checkpoint_completion_target = 0.05
591591
checkpoint_flush_after = 0
592-
max_wal_senders = 32
592+
max_wal_senders = 48
593593
max_replication_slots = 32
594594
random_page_cost = 1.5
595595
parallel_tuple_cost = 0
@@ -928,8 +928,39 @@ dst=# select * from pg_replication_origin_status;
928928
3\. 在订阅端,delete, update 不存在记录,不报错
929929

930930
4\. 目前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
## 参考
933965
https://www.postgresql.org/docs/devel/static/logical-replication.html
934966

935-

0 commit comments

Comments
 (0)