Updated on 2025-03-13 GMT+08:00

Dual-Cluster DR Control Functions

  • gs_streaming_dr_in_switchover()

    Description: Truncates services during a planned switchover in the primary cluster in streaming replication-based remote DR solutions.

    Return type: Boolean, indicating whether the service truncation is successful and whether the switchover process can be performed normally.

    gaussdb=# SELECT * FROM gs_streaming_dr_in_switchover();
     is_in_switchover 
    ------------------
     f
    (1 row)