Skip to content

postgres_attach() error when connecting to read-only replica #90

Closed
@loicalleyne

Description

@loicalleyne

I'm trying to connect to a postgres read-only replica and getting the following error. The replica is using log shipping to prevent replication delays from cascading up to the master DB in production.

call postgres_attach('host=< IP address > port=5432 user=< USER > dbname=< DB NAME > sslmode=require', source_schema='public', sink_schema='abc');
Error: IO Error: Unable to query Postgres: ERROR:  cannot assign TransactionIds during recovery
 ERROR:  cannot assign TransactionIds during recovery

Is this something that can be supported with the pg library being used? Connecting to the same DB from the same machine with psql works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions