go-mysql-org / go-mysql-elasticsearch

Sync MySQL data into elasticsearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

execute postgresql request error

5sdba opened this issue · comments

commented
[2020/04/13 17:56:33] [error] pgclient.go:105 execute postgresql request error! Schema[] Table[visit_cust_stock], Id[ec0afc9b-54c6-4d48-8099-eb0c5169b97d],error:[pq: zero-length delimited identifier at or near """"]
[2020/04/13 17:56:33] [error] sync.go:638 sync docs err pq: zero-length delimited identifier at or near """" after binlog (mysql-bin.008926, 230041588)
[2020/04/13 17:56:33] [info] sync.go:207 close sync data routine[5]
[2020/04/13 17:56:33] [error] pgclient.go:105 execute postgresql request error! Schema[] Table[visit_card_info], Id[87eb9330-5be1-4e9a-8622-ec7ec6cabf39],error:[pq: zero-length delimited identifier at or near """"]
[2020/04/13 17:56:33] [error] sync.go:638 sync docs err pq: zero-length delimited identifier at or near """" after binlog (mysql-bin.008926, 230041588)

部分关键配置如下:

[[source]]
schema = "eips"
tables = ["*"]

[[target]]
pg_name = "172.18.1_test"
pg_host = "xxxx"
pg_port = 5432
pg_user = "xxxx"
pg_pass = "xxx"
pg_dbname = "syncdb"

## MySQL 数据到 PG 后的分发规则
[[rule]]
#mysql 库表的配置
schema = "eips"
table = "a_temp_amh_hos_person_9s"
## pg 库表的配置
pg_schema = "eips"
pg_table = "a_temp_amh_hos_person_9s"

skip_alter_actions=["ADD", "DROP","ALTER"]