File tree Expand file tree Collapse file tree
CN/modules/ROOT/pages/master/ecosystem_components
EN/modules/ROOT/pages/master/ecosystem_components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ pg_hba.conf不需要修改,有以下内容即可(仅限本地链接测试)
5858在第一个终端中执行命令:
5959[literal]
6060----
61- sudo -u highgo /home/highgo /ivy/inst/bin/pg_recvlogical -d postgres --slot wal2json_slot --create-slot -P wal2json
61+ sudo -u ivorysql /home/ivorysql /ivy/inst/bin/pg_recvlogical -d postgres --slot wal2json_slot --create-slot -P wal2json
6262
6363启动监听,实时输出变更的JSON格式
64- sudo -u highgo /home/highgo /ivy/inst/bin/pg_recvlogical -d postgres --slot wal2json_slot --start -o pretty-print=1 -f -
64+ sudo -u ivorysql /home/ivorysql /ivy/inst/bin/pg_recvlogical -d postgres --slot wal2json_slot --start -o pretty-print=1 -f -
6565----
6666
6767在第二个终端中连接数据库:
@@ -134,4 +134,4 @@ DROP TABLE test_cdc;
134134 "change": [
135135 ]
136136}
137- ----
137+ ----
Original file line number Diff line number Diff line change @@ -56,10 +56,10 @@ Open the first terminal and execute command:
5656
5757[literal]
5858----
59- sudo -u highgo /home/highgo /ivy/inst/bin/pg_recvlogical -d postgres --slot wal2json_slot --create-slot -P wal2json
59+ sudo -u ivorysql /home/ivorysql /ivy/inst/bin/pg_recvlogical -d postgres --slot wal2json_slot --create-slot -P wal2json
6060
6161Start monitoring, output the changes in JSON format and in real time.
62- sudo -u highgo /home/highgo /ivy/inst/bin/pg_recvlogical -d postgres --slot wal2json_slot --start -o pretty-print=1 -f -
62+ sudo -u ivorysql /home/ivorysql /ivy/inst/bin/pg_recvlogical -d postgres --slot wal2json_slot --start -o pretty-print=1 -f -
6363----
6464
6565Connect database in the second terminal:
You can’t perform that action at this time.
0 commit comments