Slide 28
Slide 28 text
同一 PK 挿入 (3)
node1 サーバログ
2023-03-12 15:22:34.111 JST [3040] ERROR: duplicate key
value violates unique constraint "foo_pkey"
2023-03-12 15:22:34.111 JST [3040] DETAIL: Key (id)=(1)
already exists.
2023-03-12 15:22:34.111 JST [3040] CONTEXT: processing
remote data for replication origin "pg_16401" during
message type "INSERT" for replication target relation
"public.foo" in transaction 752, finished at 0/1949D88
2023-03-12 15:22:34.111 JST [2643] LOG: background
worker "logical replication worker" (PID 3040) exited
with exit code 1
node2 サーバログ
2023-03-12 15:22:34.109 JST [3041] LOG: starting logical
decoding for slot "node2_foo_sub"
2023-03-12 15:22:34.109 JST [3041] DETAIL: Streaming
transactions committing after 0/1949D88, reading WAL from
0/1949BB0.
2023-03-12 15:22:34.109 JST [3041] STATEMENT:
START_REPLICATION SLOT "node2_foo_sub" LOGICAL 0/0
(proto_version '4', origin 'none', publication_names
'"node1_foo_pub"')
2023-03-12 15:22:34.110 JST [3041] LOG: logical decoding
found consistent point at 0/1949BB0
2023-03-12 15:22:34.110 JST [3041] DETAIL: There are no
running transactions.
2023-03-12 15:22:34.110 JST [3041] STATEMENT:
START_REPLICATION SLOT "node2_foo_sub" LOGICAL 0/0
(proto_version '4', origin 'none', publication_names
'"node1_foo_pub"')
まずサーバログを
確認する