Skip to content

Commit

Permalink
fix(pg-cdc): write transactional WAL message as heartbeat action (#19385
Browse files Browse the repository at this point in the history
)
  • Loading branch information
StrikeW authored Nov 14, 2024
1 parent 1a97b4c commit fa99969
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ publication.autocreate.mode=disabled
publication.name=${publication.name:-rw_publication}
# default heartbeat interval 5 mins
heartbeat.interval.ms=${debezium.heartbeat.interval.ms:-300000}
# emit a WAL message to the replication stream
# emit a transactional WAL message to the replication stream
# see https://github.com/risingwavelabs/risingwave/issues/16697 for more details
heartbeat.action.query=SELECT pg_logical_emit_message(false, 'heartbeat', now()::varchar)
heartbeat.action.query=SELECT pg_logical_emit_message(true, 'heartbeat', now()::varchar)
# In sharing cdc source mode, we will subscribe to multiple tables in the given database,
# so here we set ${table.name} to a default value `RW_CDC_Sharing` just for display.
name=${hostname}:${port}:${database.name}.${schema.name}.${table.name:-RW_CDC_Sharing}
Expand Down

0 comments on commit fa99969

Please sign in to comment.