Hi,

> 1. Apply worker reports the partitioned table instead of the leaf
> partition in some errors

I found that error context callback reports the remote relation's name as
"target relation", so it's consistent with it. When I ran the test after 
patching,
I got the below output:

```
ERROR:  logical replication target relation "public.tab5_1" has neither REPLICA 
IDENTITY index nor PRIMARY KEY and published relation does not have REPLICA 
IDENTITY FULL
CONTEXT:  processing remote data for replication origin "pg_16420" during 
message type "UPDATE" for replication target relation "public.tab5" in 
transaction 740, finished at 0/01808168
```

I feel Wwe should fix all or retain them.

> 2. Missing RelationClose() in check_and_init_gencol()

I have no strong opinion to fix it, but pgoutput_ensure_entry_cxt() should also
be done if we fix.

Best regards,
Hayato Kuroda
FUJITSU LIMITED



Reply via email to