DROP RESOURCE LABEL

Function

DROP RESOURCE LABEL deletes a resource label.

Precautions

Only users with the poladmin or sysadmin permission, or the initial user can perform this operation.

Syntax

DROP RESOURCE LABEL [IF EXISTS] policy_name[, ...]*;

Parameter Description

label_name

Specifies the resource label name.

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

Examples

-- Delete a resource label.
openGauss=# DROP RESOURCE LABEL IF EXISTS res_label1;

-- Delete a group resource label.
openGauss=# DROP RESOURCE LABEL IF EXISTS res_label1, res_label2, res_label3;

Helpful Links

ALTER RESOURCE LABEL and CREATE RESOURCE LABEL

Feedback
编组 3备份
    openGauss 2024-05-07 00:46:52
    cancel