是在用dbsyncer工具同步数据的时候报错的,发现了两个错误,需要对postgresql进行配置,配置以后才能继续进行增量同步
用dbsyncer去做增量同步的时候只能默认增量10个,多了会报错,下面的错误:
需要去修改postgresql/data下面的postgresql.conf配置文件
org.postgresql.util.PSQLException: FATAL: number of requested standby connections exceeds max_wal_senders (currently 10)
一、number of requested standby connections exceeds max_wal_senders (currently 0)...
原因:max_wal_sengers参数设置错误,默认设置为0,即没有开启流复制
解药:调整max_wal_sengers参数
#------------------------------------------------------------------------------
# REPLICATION
#------------------------------------------------------------------------------
# - Sending Servers -
# Set these on the master and on any standby that will send replication data.
#max_wal_senders = 1