PostgreSQL RDS instance having physical replication to multi-AZ, same instance also enabled for Fivetran replication copying data to BigQuery using WAL logical test-decoding.
Multiple issues here:
replication Lag, though not actually happening
Querying
a)
select * from pg_stat_replication;shows only physical RDS replication details.b)
select * from pg_replication_slots;gives information about replication slot created with value "Active" is "False" and "active_pid" is "NULL", which indicates replication is not active.However, verifying from Fivetran shows the sync is successful and the
restart_lsnandflush_lsnvalues getting updated.encountered another issue with one of the databases, Fivetran connector disconnected and broken with this error:
"status" : "FAILURE_WITH_TASK", "reason" : "java.lang.RuntimeException: fivetran_replication has last tracked LSN of PostgresLsn{6065/C8000028} which is ahead of PostgresLsn{6065/B009A038}", "taskType" : "reconnect"
Tried reconnecting, but the same error pops up. Is there an way to skip the WAL logs?