Skip to content

the standby node is unable to view the citus_tables view when backing up the database. #7786

@wkz2797848480

Description

@wkz2797848480

How to reproduce
Database version: PostgreSQL 16.6 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5
Citus version: Citus 12.1.4 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5

Problem Description:

In a Patroni-based high-availability environment for Citus cluster backup, the standby node is unable to view the citus_tables view when backing up the database.

Executing commands on Coordinator/Worker nodes results in an error description:
postgres=# select * from citus_shard_sizes() css(shard_id, size);
ERROR: writing to worker nodes is not currently allowed
DETAIL: the database is read-only
postgres=# select * from citus_tables;
ERROR: writing to worker nodes is not currently allowed
DETAIL: the database is read-only

Metadata

Metadata

Assignees

No one assigned

    Labels

    under-evaluationto track issues that are under evaluation/consideration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions