Help Center > > Developer Guide> SQL Reference> SQL Syntax> CREATE BARRIER

CREATE BARRIER

Updated at: Mar 13, 2020 GMT+08:00

Function

Creates a barrier for cluster nodes. The barrier can be used for data restoration.

Precautions

Before creating a barrier, ensure that gtm_backup_barrier and enable_cbm_tracking are set to on for CNs and DNs in the cluster.

Syntax

1
CREATE BARRIER [ barrier_name  ] ;

Parameter Description

barrier_name

(Optional) Indicates the name of a barrier.

Value range: a string. It must comply with the naming convention.

Examples

1
2
3
4
5
-- Create a barrier without specifying its name:
CREATE BARRIER;

-- Specify a barrier name:
CREATE BARRIER 'barrier1';

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel