DMS configuration for cdc with PostgreSQL as source

0

I need a configuration for DMS to always replicate the entire row when a change occurs and not just the data that has changed, which config can I use? the source database is postgresql and the task is already cdc

1개 답변
2

Hi,

My understanding is that only changes can be propagated by DMS. Mostly because it uses the rdbms logs to capture those changes and those logs do not contain full rows but only delta.

Nonetheless, you can achieve what you want by using a sql trigger: https://www.postgresql.org/docs/current/sql-createtrigger.html

The idea is the following; the trigger with fire on any change on the row brought by a DMS change. Then this trigger selects in full (i.e. all columns as neeed) the row as change is applied. This trigger then "pushes" the full row whenever you need: write it in another table, steams it outside of pg, etc.

Hope it helps!

Didier

profile pictureAWS
전문가
답변함 5달 전
profile picture
전문가
검토됨 5달 전
  • but apparently when using MySQL as source there is a configuration for this in the DMS it would be (ndb_log_updated_only = OFF), is there really nothing to be done in the DMS itself?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠