[source-postgres] Logical replication not working on read replicas #45396
Labels
area/connectors
Connector related issues
autoteam
community
team/connectors-python
type/bug
Something isn't working
Connector Name
source-postgres
Connector Version
3.6.18
What step the error happened?
Syncs never start.
Relevant information
CDC Replication doesn't work on Postgres read replicas because it uses functions that can only be executed on the master - probably only one function:
pg_current_wal_lsn()
.I believe this can be solved quickly by replacing usage of
pg_current_wal_lsn
function withpg_last_wal_receive_lsn
.Postgres version : 16.13R2
Good to know: Debezium has solved this issue on their side very simply since V2.5, however the connector doesn't use Debezium for everything.
Relevant log output
java.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR: recovery is in progress Hint: WAL control functions cannot be executed during recovery.
Contribute
The text was updated successfully, but these errors were encountered: