Creates a barrier for cluster nodes. The barrier can be used for data restoration.
Before creating a barrier, ensure that gtm_backup_barrier and enable_cbm_tracking are set to on for CNs and DNs in the cluster.
1 | CREATE BARRIER [ barrier_name ] ; |
barrier_name
(Optional) Indicates the name of a barrier.
Value range: a string. It must comply with the naming convention.
Create a barrier without specifying its name.
1 | CREATE BARRIER; |
Create a barrier named barrier1.
1 | CREATE BARRIER 'barrier1'; |