Hello everyone, I'm trying to ingest data from pos...
# troubleshooting
v
Hello everyone, I'm trying to ingest data from postgres to starrocks using flink 1.8.1 and postgres-cdc connctor. I'm getting error as
Copy code
The "before" field of UPDATE/DELETE message is null, please check the Postgres table has been set REPLICA IDENTITY to FULL level
So do i need to update my REPLICA IDENTITY to full for every table or default mode is enough. If default is enough how can i resolve this issue
d
This is one possible reason why the before field is null. You should also share what your current Replica Identity is set to when you get this message?
v
@D. Draco O'Brien Currently having it as default
d
“published table must have a replica identity configured in order to be able to replicate
UPDATE
and
DELETE
operations, so that appropriate rows to update or delete can be identified on the subscriber side. By default, this is the primary key, if there is one. Another unique index (with certain additional requirements) can also be set to be the replica identity. If the table does not have any suitable key, then it can be set to replica identity
FULL
, which means the entire row becomes the key.”
So you need to make sure there is a primary key specified if you are on default I think at a minimum
v
Yeah i have primary key and replica identity as default. Eventhough i’m getting this error