Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
source-postgres: Handle null restart_lsn values
When querying replication slot info for an invalidated slot, the `restart_lsn` column is typically null which resulted in a: ``` error querying replication slots: can't scan into dest[5]: can not scan <nil> to LSN ``` warning rather than the intended behavior where the query itself succeeds and because `wal_status == 'lost'` we instead warn that: ``` replication slot was invalidated by the server, it must be deleted and all bindings backfilled ``` Note that in either case this is currently just a warning and the actual error today is still: ``` runTransactions: readMessage: error creating replication stream: unable to start replication: ERROR: cannot read from logical replication slot "flow_slot" (SQLSTATE 55000) ``` I would like to get the logic working reliably in warn-mode before we make it a hard error, for obvious reasons.
- Loading branch information